登录mysql
# mysql -u root -p -h 192.168.1.102
输入密码
登录成功后,执行以下语句:
mysql> grant all privileges on *.* to ‘root’@'%’ identified by ‘123456’ with grant option;
登录mysql
# mysql -u root -p -h 192.168.1.102
输入密码
登录成功后,执行以下语句:
mysql> grant all privileges on *.* to ‘root’@'%’ identified by ‘123456’ with grant option;