CentOS6.5安装配置MySQL
-
安装
yum install mysql mysql-server
-
开启服务
service mysqld start
-
修改密码
mysqladmin -u root password '123456'
-
登录
mysql -uroot -p
-
删除无效用户
delete from user where password='';
-
设置root远程登录
update user set host ='%' where user='root';
-
刷新权限
flush privileges;
-
关闭防火墙
临时关闭service iptables stop
永久关闭chkconfig iptables off