阿里云下Linux MySQL的安装

  1. MySQL的安装和配置
  • 安装rpm包

rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

  • 安装mysql

yum -y install mysql-community-server

  • 加入开机启动

systemctl enable mysqld

  • 启动MySQL服务进程

systemctl start mysqld

  • 配置root用户密码

mysql_secure_installation

猜你喜欢

转载自www.cnblogs.com/Yellow0-0River/p/8961320.html