简体   繁体   English

用WAMP服务器设置phpMyAdmin

[英]setting up phpMyAdmin with WAMP server

I got phpmyadmin to log on, and followed this link . 我让phpmyadmin登录,并点击了此链接 Now the problem is that I wrote php code for accessing a database and reading data from the tables using a sql query but it fails to find the database I created using mysql command line console. 现在的问题是,我编写了用于访问数据库并使用sql查询从表中读取数据的php代码,但无法找到使用mysql命令行控制台创建的数据库。 However, it can find the database I created using the phpmyadmin. 但是,它可以找到我使用phpmyadmin创建的数据库。 Why is that? 这是为什么?

Several things could be the case here: 这里可能有几件事情:

  • Have you set the blowfish secret? 你设置河豚的秘密了吗?

     $cfg['blowfish_secret'] = '7hfs97fs4fs847'; 
  • Have you set the auth config parameter? 您是否设置了auth config参数?

     $cfg['Servers'][$i]['auth_type'] = 'config'; 
  • Tried logging in with a blank password? 尝试使用空白密码登录?

     $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; 
  • reset the root password for MySQL? 重置MySQL的root密码?

     mysql>use mysql; mysql>update user set Password=PASSWORD('NewPass') where User='root'; mysql> flush privileges; mysql>exit 

Let me know if one of these solution helped you. 让我知道这些解决方案之一是否对您有所帮助。

Read the official documentation, you`ll have to setup some other variables too: http://www.phpmyadmin.net/documentation/Documentation.html#setup 阅读官方文档,您还必须设置其他一些变量: http : //www.phpmyadmin.net/documentation/Documentation.html#setup

For example: $cfg['Servers'][$i]['auth_type'] = 'config'; 例如: $cfg['Servers'][$i]['auth_type'] = 'config';

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

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