mysql数据库安装方法
1、安装mysql 社区门溘曝晖版yum源rpm -ivh mysql-community-release-el7-5.noarch.rpm

2、执行安装命令yum install mysql-community-server

3、设置mysql开机启动并启动服务systemctl enable mysqldsystemctl start mysqld

4、初始化mysql数据库mysql_secure_installation

5、输入y并回车,设置root登录密码

6、剩下的一路直接回车

7、登录测试mysql -uroot -p123456
