PHP管理员拒绝访问

时间:2017-05-21 18:43:37

标签: mysql phpmyadmin

尝试运行PHPADMIN时出现以下错误

   Error
MySQL said: Documentation

#1226 - User 'root' has exceeded the 'max_connections_per_hour'
resource (current value: 3)
mysqli_real_connect(): (HY000/1226): 
User 'root' has exceeded the 'max_connections_per_hour' resource (current value: 3)
phpMyAdmin tried to connect to the MySQL server, and the server rejected 
the connection. 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.

请帮忙。我不小心将我的一个数据库的一小时内的最大访问次数设置为3。

1 个答案:

答案 0 :(得分:0)

等待并在命令行运行SQL

UPDATE mysql.user SET max_connections = 0 WHERE user='root'; 

FLUSH PRIVILEGES;