安装
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmrpm -ivh mysql-community-release-el7-5.noarch.rpmyum install mysql-community-server
启动
service mysqld restart
设置密码
mysql -urootmysql> set password for 'root'@'localhost' = password('123456');mysql> exit
配置mysql (字符集,数据存储路径等)