Ubuntu Linux:
1.root账号执行:apt-get install mysql-server
2.设置远程连接:GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123‘ WITH GRANT OPTION;
CentOS Linux:
1.root账号执行:yum install mysql 或 yum install mysql-server
2.启动Mysql服务:service mysqld start
3.登陆Mysql:Mysql
4.设置远程连接:GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123‘ WITH GRANT OPTION;
原文地址:http://www.cnblogs.com/baby-bear/p/3797215.html