本人博客上一篇(http://blog.csdn.net/tjcyjd/article/details/41646889)已讲了yum源的配置,有了yum那么安装mysql就会很简单,具体如下:
yum list installed mysql* rpm -qa | grep mysql*
yum list mysql*
yum install mysql
yum install mysql-server yum install mysql-devel
service mysqld start
chkconfig -add mysqld
查看开机启动设置是否成功
chkconfig --list | grep mysql*
service mysqld stop
mysqladmin -u root password 666666
service mysqld stop mysqld_safe --user=root --skip-grant-tables mysql -u root use mysql update user set password=password("666666") where user="root"; flush privileges;
use mysql; UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1;