作者:张丽君2502934023 | 来源:互联网 | 2023-05-21 18:47
我安装wamp
在服务器和本地机器上.在本地机器上这很好用.但是服务器中发生了一些问题.当我登录到phpmyadmin
#1045无法登录到MySQL服务器时显示错误.我怎么能解决这个问题?
我的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;
请帮帮我..谢谢..
1> 小智..:
使用默认密码登录:
Username: root
Password: [null]
使用[null]我的意思是没有密码.