Mysql5.6 安装

  • Centos 安装 MySQL Repository:

    rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
  • 安装 MySQL Server, MySQL client 已經包括在 server 套件內:

    yum install mysql-community-server
  • 开机启动 MySQL

    /usr/bin/systemctl enable mysqld
  • 启动 MySQL

    /usr/bin/systemctl start mysqld
  • MySQL 预设密码为空, 执行以下命令修改密码:

    /usr/bin/mysql_secure_installation

相关推荐