1、安裝MySQL
yum install mysql mysql-devel mysql-server
2、設(shè)定運(yùn)行級(jí)別
chkconfig --levels 235 mysqld on
3、啟動(dòng)
/etc/init.d/mysqld start
4、檢查運(yùn)行狀態(tài)
netstat -tap | grep mysql
5、修改密碼
mysqladmin -u root password yourrootsqlpassword
mysqladmin -h server1.example.com -u root password yourrootsqlpassword