yum -y install mysql-server
yum install mysql-devel
mysql配置文件/etc/my.cnf中加入default-character-set=utf8
service mysqld start
chkconfig -add mysqld
mysqladmin -u root password 123456
grant all privileges on *.* to 'uername'@'%' identified by 'passwd';
flush privileges;