1、安装

yum install mysql mysql-server

2、启动

com.a3fun.rocket.service mysqld start

3、登录

mysql -uroot -p

4、改密码

set password for root@localhost=password('your_password')

5、查看密码

select user,host,password from mysql.user

备注:

更改数据库编码参考:

SET character_set_client = utf8 ;