进入mysql命令行
执行如下两行命令:
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
备注:第一个命令的root代表用户名,123456代表密码
进入mysql命令行
执行如下两行命令:
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
备注:第一个命令的root代表用户名,123456代表密码