我在服务器和本地机器上都安装了 wamp
。在本地机器上,这工作正常。但是服务器中发生了一些问题。当我登录到 phpmyadmin
#1045 Cannot log in to the MySQL server 错误显示。我该如何解决这个问题?
我的config.inc.php 文件包含以下代码
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'admin';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
请帮助我..谢谢..
最佳答案
使用默认密码登录:
Username: root
Password: [null]
[null] 我的意思是根本没有密码。
关于php - #1045 无法在 wamp 中登录 MySQL 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28541325/