//登录MYSQL
@>mysql -u root -p
@>密码
授权
grant all privileges on *.* to root@"% " identified by '123456' with grant option;
mysql >flush privileges;
root是登陆用户
%是所有都可以登陆,也可以写成ip地址
123456是登陆密码
转载于:https://blog.51cto.com/2376676/590688
//登录MYSQL
@>mysql -u root -p
@>密码
授权
grant all privileges on *.* to root@"% " identified by '123456' with grant option;
mysql >flush privileges;
root是登陆用户
%是所有都可以登陆,也可以写成ip地址
123456是登陆密码
转载于:https://blog.51cto.com/2376676/590688