【发布时间】:2010-12-15 07:55:18
【问题描述】:
我已经使用 --skip-grant-tables 选项登录到 MySQL。但我不知道如何将所有权限恢复给 root 用户。
我试过了:
GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost';
MySQL 说:
# 1290 - The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
尝试:
GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost'
WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0
MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
MySQL 说:
# 1290 - The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
【问题讨论】:
-
这个问题/答案中似乎有解决方案stackoverflow.com/questions/1709078/…
标签: mysql privileges