简体   繁体   English

找不到结果/找到结果

[英]No result found/Result found

i'm new in asking questions here in the site, here is the situation: 我是在网站上这里问问题的新手,情况如下:

  • Im using a Xampp Control Panel, 我正在使用Xampp控制面板,
  • I have two systems, the old one and the new one (the new one is just the upgraded version of the old one). 我有两个系统,旧系统和新系统(新系统只是旧系统的升级版)。
  • I have 2 databases, let's name it db1 and db2, (db1 is the dbase used for the old one, and db2 is the dbase used for the new one.) 我有2个数据库,我们将其命名为db1和db2(db1是用于旧数据库的dbase,而db2是用于新数据库的dbase。)
  • both databases have the same tables and contents except for one table, in db1.tb_final_dtr the structure has only 10 columns while db2.tb_final_dtr has 11 columns though the 10 columns in each table is the same with each other, and also both tables have the same records. 这两个数据库都具有相同的表和内容(除了一个表),在db1.tb_final_dtr中,该结构只有10列,而db2.tb_final_dtr有11列,尽管每个表中的10列彼此相同,并且两个表都具有相同的记录。 -I tried to queried both database with simple query lets say "SELECT * FROM tb_final_dtr WHERE hr_id = 'ASM12-0101'", the problem is, db1 shown 10 records right away, while db2 shown empty result. -我尝试用简单查询查询两个数据库,比如说“ SELECT * FROM tb_final_dtr WHERE hr_id ='ASM12-0101'”,问题是db1立即显示10条记录,而db2显示空结果。 They both have the same table structure and records, they just differ in database name and the number of columns in one table. 它们都具有相同的表结构和记录,只是数据库名称和一个表中的列数不同。

WHAT SEEMS TO BE THE PROBLEM? 有什么问题? hope you can reply at my question right away. 希望您能立即回答我的问题。 Thanks a lot. 非常感谢。

Your DB_2 is not working on NEW system.. 您的DB_2无法在新系统上工作。

Go to PHPmyadmin (on your NEW system) and add new user with username & password written from your conf file (and server name as localhost) of your website :P 转到PHPmyadmin(在您的NEW系统上)并添加新用户,该用户的名称和密码是从您网站的conf文件(服务器名称为localhost)中写入的:P

So 所以

  • go to PMA 去PMA
  • add new user 添加新用户
  • enter data (server, username, password) 输入数据(服务器,用户名,密码)
  • reload mysql 重新加载mysql

Of course, DB name in config file may also be wrong if tables are duplicated who knows what so check that too. 当然,如果表重复(知道什么),则配置文件中的数据库名称也可能是错误的,因此也要进行检查。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM