grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
[size=medium]第一个root表示用户名,%表示所有的电脑都可以连接,也可以设置某个ip地址运行连接,第二个root表示密码。[/size]
flush privileges;
[size=medium]命令立即生效。[/size]
grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
flush privileges;