[英]Error 1044 access denied for user ''@'localhost' to database
I just installed Wampserver and I'm trying to create a new database but once I type a name for it and click create, I get this error "#1044 - access denied for user ''@'localhost' to database".我刚刚安装了 Wampserver,我正在尝试创建一个新数据库,但是一旦我为其输入名称并单击创建,我就会收到此错误“#1044 - 用户 ''@'localhost' 对数据库的访问被拒绝”。 I would appreciate any help.
我将不胜感激任何帮助。
When you login to MySQL, phpMyAdmin you have to use a real account.当您登录 MySQL、phpMyAdmin 时,您必须使用真实帐户。
WampServer sets the root
account up without a password, so WampServer 在没有密码的情况下设置
root
帐户,所以
Use Username
= root使用
Username
= root
And leave Password
= [blank]并留下
Password
= [空白]
Also WAMPServer installs both
MySQL
andmariaDB
.WAMPServer 同时安装
MySQL
和mariaDB
。 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两者实际上都是默认激活的,因此要么禁用您不想使用的一个(并将另一个切换为使用端口 3306),要么确保您在
phpMyAdmin
登录页面的下拉列表中选择了正确的 DBMS
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.