我想执行命令
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
但是我有错误:
ERROR 1045 (28000): Access denied for user 'root'@'%' (using password: NO)
当我查看补助金时,我有
USAGE
,仅此而已。MariaDB [(none)]> SHOW GRANTS;
+----------------------------------+
| Grants for root@% |
+----------------------------------+
| GRANT USAGE ON *.* TO 'root'@'%' |
+----------------------------------+
命令
CREATE DATABASE test;
也不行。
最佳答案
GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY '...' WITH GRANT OPTION;
但是,如果您没有
SUPER
权限进行访问,请参见手册页,以了解如何使用--skip-grant-tables
(从同一服务器)进入关于mysql - 如何在MariaDB中扩展赠款,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49746966/