CentOS,root用户远程登录MySQL

2710阅读 2评论2011-03-09 almeydifer
分类:Mysql/postgreSQL

一个是本地密码,一个是远程密码。缺一不可。
grant all on *.* to root@'%' identified by 'asdfgh';
set password for root@'%' = password('asdfgh');
FLUSH PRIVILEGES;

然后退出到终端,service mysqld restart;

即可实现root远程登录了。
上一篇:Win 7环境下,搞定visio到eps的转化。
下一篇:Chinese Can Innovate--But China Can't

文章评论