我刚刚安装了 Wampserver,我正在尝试创建一个新数据库,但是一旦我为其输入名称并单击“创建”,就会收到此错误“#1044 - 用户 ''@'localhost' 访问数据库被拒绝” 。 我将不胜感激任何帮助。
最佳答案
当您登录MySQL、phpMyAdmin时,您必须使用真实帐户。
WampServer 设置 root
帐户时没有密码,因此
使用用户名
= root
并保留密码
= [空白]
Also WAMPServer installs both
MySQL
andmariaDB
. Both are actually activated by default, so either disable the one you dont want to use (and switch the other to use port 3306) Or make sure you select the correct DBMS in the dropdown on thephpMyAdmin
login page
关于mysql - 错误 1044 用户 '' @'localhost' 访问数据库被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59882563/