登录mysql
# mysql -u root -p -h 192.168.1.102
输入密码
登录成功后,执行以下语句:
mysql> grant all privileges on *.* to ‘root’@'%’ identified by ‘123456’ with grant option;
本文介绍如何登录MySQL服务器并为root用户授予所有权限的方法。通过执行特定的SQL语句,可以实现对root用户的全面授权。
登录mysql
# mysql -u root -p -h 192.168.1.102
输入密码
登录成功后,执行以下语句:
mysql> grant all privileges on *.* to ‘root’@'%’ identified by ‘123456’ with grant option;
684

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