下載與安裝mysql
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
複製代碼
rpm -ivh mysql-community-release-el7-5.noarch.rpm
複製代碼
sudo yum install mysql-server
複製代碼
中間不停的y便可sql
更換權限centos
sudo chown -R openscanner:openscanner /var/lib/mysql
複製代碼
重啓MySQL服務bash
service mysqld restart
複製代碼
mysql -u root 
複製代碼
而後輸入spa
show databases;
複製代碼
有返回值 便可說明安裝成功~rest