【发布时间】:2022-01-18 13:42:32
【问题描述】:
我想在启用skip-grant-tables 时将所有权限授予mysql 数据库中的root 用户。
我该怎么做?
当我禁用skip-grant-tables 选项时,由于此错误,我无法登录mysql:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
当我运行这个命令时,它会影响零行:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost';
还有:
FLUSH PRIVILEGES;
不会刷新或改变任何东西。
数据库是 Mariadb 版本 10.3.22。
【问题讨论】: