![](/img/trans.png)
[英]ER_ACCESS_DENIED_ERROR: When i try to connect to the database on remote server - Node.js
[英]Access denied when i try to connect to mysql server
我正在尝试使用查询浏览器连接到MySQL服务器。但是,我在Windows命令提示符中收到以下错误消息, Host is not allowed to this MySQL server instance
我尝试了STACK OVERFLOW like- GRANT命令和然后尝试访问。 这可能是一个“重复”的问题。 但是请回答我。
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Admin>mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 211
Server version: 5.0.95-community-nt MySQL Community Edition (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> GRANT ALL ON *.* TO 'root'@'123.28.88.45' WITH GRANT OPTION;
ERROR 1045 (28000): Access denied for user ''@'localhost' (using password: NO)
mysql> GRANT ALL ON *.* TO 'root'@'123.28.88.45' WITH GRANT OPTION
-> FLUSH PRIVILEGES
-> mysql -u root -p
-> \q
尝试使用mysql -uroot -p
而不是mysql
登录。 您的最后一个Grant-Command失败,因为您错过了分号。
克里斯·克里斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.