grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
如果是mariadb
重启mysql
service mysql restart
service mariadb restart
service mysqld restart
本文介绍了如何在MariaDB中为'root'用户授予所有权限,并使用'flushprivileges'刷新权限,随后详细说明了针对不同系统的MySQL重启步骤:Linux服务重启命令。
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
如果是mariadb
重启mysql
service mysql restart
service mariadb restart
service mysqld restart
538
199

被折叠的 条评论
为什么被折叠?