进入MySQL
mysql -uroot -p****
执行命令
grant all privileges on *.* to 'root' @'%' identified by '123';
flush privileges;
‘root’ 用户,'123’密码,执行 flush privileges; 重新加载权限表,否则不会生效。
进入MySQL
mysql -uroot -p****
执行命令
grant all privileges on *.* to 'root' @'%' identified by '123';
flush privileges;
‘root’ 用户,'123’密码,执行 flush privileges; 重新加载权限表,否则不会生效。