CentOS 6 安裝 MySQL5.6

因為 Mantis 建議安裝 mysql 5.6 但 CentOS 6.9 內建 MySQL 只到 5.1 所以需另外安裝

rpm -Uvh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
yum -y install mysql-server
  • 第一次啟動
    chkconfig mysqld on
    service mysqld start
  • 設定 root 密碼
    /usr/bin/mysqladmin -u root password 'newpassword'
    mysql -u root -p

參考網址

  • tech/centos6_mysql.txt
  • 上一次變更: 2017/11/23 15:13
  • Jonathan Tsai