Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/439.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript phpmyadmin不工作_Javascript_Php - Fatal编程技术网

Javascript phpmyadmin不工作

Javascript phpmyadmin不工作,javascript,php,Javascript,Php,欢迎来到phpMyAdmin 错误 MySQL说:文档 1045-使用密码对用户“root”@“localhost”的访问被拒绝:是 我的配置页面 /* Authentication type and info */ $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'root'; $cfg['Servers'][

欢迎来到phpMyAdmin

错误 MySQL说:文档

1045-使用密码对用户“root”@“localhost”的访问被拒绝:是 我的配置页面

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';

用户root@localhost具有密码的根不存在。
如果您可以通过其他方式连接到数据库,则应该使用在那里使用的凭据。但是使用密码“root”似乎不太安全。

您还应该确认您的主机实际上是127.0.0.1或localhost。某些web主机使用不同的主机名。

您的数据库是否在web空间上?您正在尝试将其从本地主机连接到远程服务器吗?more info=最快的解决方案是否仍应使用空密码?如果您在配置中将密码留空,PhpMyAdmin将要求输入密码。如果root用户的密码真的为空,则比密码“root”更不安全。但是有一个数据库正在本地主机上运行。错误消息来自MySQL。我不认为使用不同服务器进行数据库的主机也在其Web服务器上运行数据库。