简体   繁体   English

#1130-不允许主机“ localhost”连接到该MySQL服务器

[英]#1130 - Host 'localhost' is not allowed to connect to this MySQL server

When I try to access the PhpMyAdmin page, I had the error in the title above. 当我尝试访问PhpMyAdmin页面时,上面的标题中出现错误。

I tried all procedures found in the internet but unfortunately I didn't found the resolution. 我尝试了在Internet上找到的所有程序,但不幸的是我没有找到解决方法。

Below the error that I have : 下面的错误,我有:

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. phpMyAdmin尝试连接到MySQL服务器,服务器拒绝连接。 You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. 您应该检查配置中的主机,用户名和密码,并确保它们与MySQL服务器管理员提供的信息相对应。

Edit : 编辑

Ichecked the Mysql service and I found that is not running, I try to start it but it won't. 我检查了Mysql服务,发现它没有运行,我尝试启动它,但是没有启动。

I restart the machine and the things return to normal !! 我重启机器,一切恢复正常! but when I edit the My.ini file in order to clean all added entries and restarted Mysql I had the same error and when I added skip-grant-tables option under [mysqld] in My.ini file I had once again access to Mysql !!! 但是当我编辑My.ini文件以清理所有添加的条目并重新启动Mysql时,我遇到了相同的错误,当我在My.ini文件的[mysqld]下添加了skip-grant-tables选项时,我再次可以访问Mysql !!!

I guess there is an issue in users or privileges !? 我猜用户或特权有问题!?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 #1130-主机'localhost'不允许连接到此MySQL服务器怪异消息吗? - #1130 - Host 'localhost' is not allowed to connect to this MySQL server weird message? 一些请求返回 SQLSTATE[HY000] [1130] 不允许主机 'localhost' 连接到生产服务器上的此 MySQL 服务器 - some requests return SQLSTATE[HY000] [1130] Host 'localhost' is not allowed to connect to this MySQL server on production server SQLSTATE [HY000] [1130]不允许主机“ xx.xxxx”连接到此MySQL服务器 - SQLSTATE[HY000] [1130] Host 'xx.x.x.xx' is not allowed to connect to this MySQL server 不允许主机“localhost”连接到此 MariaDB 服务器 - Host 'localhost' is not allowed to connect to this MariaDB server Laravel 主机不允许连接到此 mysql 服务器(Centos 7) - Laravel host is not allowed to connect to this mysql server (Centos 7) PDO连接到本地主机(未知的mysql服务器主机) - PDO connect to localhost (unknown mysql server host) 主机不允许连接到该服务器 - host is not allowed to connect to this server 未捕获的异常“ PDOException”-不允许主机“ xxx”连接到此MySQL服务器 - Uncaught exception 'PDOException' - Host 'xxx' is not allowed to connect to this MySQL server PHP 中的解析错误和主机不允许连接到此 MySQL 服务器 - Parse Error in PHP and Host is not allowed to connect to this MySQL server 000webhost主机不允许连接到该MySQL服务器 - 000webhost Host is not allowed to connect to this MySQL server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM