Phpmyadmin #1045-拒绝用户访问';根'@';本地主机';(使用密码:否)

Phpmyadmin #1045-拒绝用户访问';根'@';本地主机';(使用密码:否),phpmyadmin,Phpmyadmin,一直以来,我都试图在wamp服务器中打开phpMyAdmin,并试图使用默认用户名和密码登录,即分别为“root”和“root”,但显示的错误相同 1045-拒绝用户“root”@“localhost”的访问(使用密码:否) phpMyAdmin试图连接到MySQL服务器,但服务器拒绝了连接。您应该检查配置中的主机、用户名和密码,并确保它们与MySQL服务器管理员提供的信息相对应 即使在卸载wamp并重新安装之后,它也会显示相同的错误 我已经浏览了与该问题相关的全部帖子,以及要求使用userna

一直以来,我都试图在wamp服务器中打开phpMyAdmin,并试图使用默认用户名和密码登录,即分别为“root”和“root”,但显示的错误相同

1045-拒绝用户“root”@“localhost”的访问(使用密码:否) phpMyAdmin试图连接到MySQL服务器,但服务器拒绝了连接。您应该检查配置中的主机、用户名和密码,并确保它们与MySQL服务器管理员提供的信息相对应

即使在卸载wamp并重新安装之后,它也会显示相同的错误


我已经浏览了与该问题相关的全部帖子,以及要求使用username=root和password=“NULL”登录的所有地方,但这对我来说都不起作用。

请检查您是否可以从命令行或使用某种工具登录服务器,以获得一个像样的全面工具

如果您信任您的localhost,则可以使用无密码从localhost连接到root的权限。请注意,无密码和空字符串密码不同:

GRANT ALL ON *.* TO 'root'@'localhost';
# all db's --^ ^     ^      ^         ^
# all tables --|     |      |         |
# username ----------|      |         |
# host connected from ------|         |
# no IDENTIFIED BY, no password ------|

根据您的服务器配置(使用wamp后的桌面),可能还需要
'root'@'127.0.0.1'
授予相同的权限。虽然localhost在IPv4中转换为127.0.0.1,但它还有其他含义。

请检查您是否可以从命令行或使用某种工具登录到服务器,以获得一个全面的工具

如果您信任您的localhost,则可以使用无密码从localhost连接到root的权限。请注意,无密码和空字符串密码不同:

GRANT ALL ON *.* TO 'root'@'localhost';
# all db's --^ ^     ^      ^         ^
# all tables --|     |      |         |
# username ----------|      |         |
# host connected from ------|         |
# no IDENTIFIED BY, no password ------|

根据您的服务器配置(使用wamp后的桌面),可能还需要
'root'@'127.0.0.1'
授予相同的权限。虽然localhost在IPv4中转换为127.0.0.1,但它还有其他含义。

请检查您是否可以从命令行或使用某种工具登录到服务器,以获得一个全面的工具

如果您信任您的localhost,则可以使用无密码从localhost连接到root的权限。请注意,无密码和空字符串密码不同:

GRANT ALL ON *.* TO 'root'@'localhost';
# all db's --^ ^     ^      ^         ^
# all tables --|     |      |         |
# username ----------|      |         |
# host connected from ------|         |
# no IDENTIFIED BY, no password ------|

根据您的服务器配置(使用wamp后的桌面),可能还需要
'root'@'127.0.0.1'
授予相同的权限。虽然localhost在IPv4中转换为127.0.0.1,但它还有其他含义。

请检查您是否可以从命令行或使用某种工具登录到服务器,以获得一个全面的工具

如果您信任您的localhost,则可以使用无密码从localhost连接到root的权限。请注意,无密码和空字符串密码不同:

GRANT ALL ON *.* TO 'root'@'localhost';
# all db's --^ ^     ^      ^         ^
# all tables --|     |      |         |
# username ----------|      |         |
# host connected from ------|         |
# no IDENTIFIED BY, no password ------|

根据您的服务器配置(使用wamp后的桌面),可能还需要
'root'@'127.0.0.1'
授予相同的权限。虽然localhost在IPv4中翻译为127.0.0.1,但它还有其他含义。

您可以尝试使用已发布在此处的答案中的建议:

它表示您必须编辑phpMyAdmin配置文件:

$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = '**your-root-username**';
$cfg['Servers'][$i]['password'] = '**root-password**';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
如果仍然不起作用,您可以按照上面链接的第一条评论中的建议进行操作: 替换
$cfg['Servers'][$i]['auth_type']='config'
$cfg['Servers'][$i]['auth_type']='cookie'

您可以尝试使用已发布在此处的答案中的建议:

它表示您必须编辑phpMyAdmin配置文件:

$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = '**your-root-username**';
$cfg['Servers'][$i]['password'] = '**root-password**';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
如果仍然不起作用,您可以按照上面链接的第一条评论中的建议进行操作: 替换
$cfg['Servers'][$i]['auth_type']='config'
$cfg['Servers'][$i]['auth_type']='cookie'

您可以尝试使用已发布在此处的答案中的建议:

它表示您必须编辑phpMyAdmin配置文件:

$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = '**your-root-username**';
$cfg['Servers'][$i]['password'] = '**root-password**';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
如果仍然不起作用,您可以按照上面链接的第一条评论中的建议进行操作: 替换
$cfg['Servers'][$i]['auth_type']='config'
$cfg['Servers'][$i]['auth_type']='cookie'

您可以尝试使用已发布在此处的答案中的建议:

它表示您必须编辑phpMyAdmin配置文件:

$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = '**your-root-username**';
$cfg['Servers'][$i]['password'] = '**root-password**';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
如果仍然不起作用,您可以按照上面链接的第一条评论中的建议进行操作: 替换
$cfg['Servers'][$i]['auth_type']='config'
$cfg['Servers'][$i]['auth_type']='cookie'

Q)Phpmyadmin#1045-拒绝用户“root”@“localhost”的访问(使用密码:否)

A) 1:转到本地磁盘(c)驱动器

2:选择Wamp服务器

3:选择应用程序文件夹

4:选择phpmyadmin4.1.14

5:使用notpad查找config.inc.php编辑++

6:查找此通道,$cfg['Servers'][$i]['password']=''

7:提供与Mysql相同的密码('admin')

例如

  mysql root password :admin 
  phpmyadnin password :admin 
谢谢

Q)Phpmyadmin#1045-拒绝用户“root”@“localhost”的访问(使用密码:否)

A) 1:转到本地磁盘(c)驱动器

2:选择Wamp服务器

3:选择应用程序文件夹

4:选择phpmyadmin4.1.14

5:使用notpad查找config.inc.php编辑++

6:查找此通道,$cfg['Servers'][$i]['password']=''

7:提供与Mysql相同的密码('admin')

例如

  mysql root password :admin 
  phpmyadnin password :admin 
谢谢

Q)Phpmyadmin#1045-拒绝用户“root”@“localhost”的访问(使用密码:否)

A) 1:转到本地磁盘(c)驱动器

2:选择Wamp服务器

3:选择应用程序文件夹

4:选择phpmyadmin4.1.14

5:使用notpad查找config.inc.php编辑++

6:查找此通道,$cfg['Servers'][$i]['password']=''

7:提供与Mysql相同的密码('admin')

例如

  mysql root password :admin 
  phpmyadnin password :admin 
谢谢

Q)Phpmyadmin#1045-拒绝用户“root”@“localhost”的访问(使用密码:否)

A) 1:转到本地磁盘(c)驱动器

2:Sele