CentOS7.2安裝mysql

1. 下載Mysql yum

http://dev.mysql.com/downloads/repo/yum/html

複製連接使用wget下載mysql

wget http://repo.mysql.com/mysql57-community-release-el7-10.noarch.rpm

2. 安轉軟件源

rpm -Uvh mysql57-community-release-el7-10.noarch.rpm

3. 安裝mysql服務端

yum install  -y  mysql-community-server

注意:這裏須要較長時間下載sql

由於mysql5.7以後,安裝完會設置一個初始密碼,因此第一次是登陸失敗的,修改mysql的連接在http://www.javashuo.com/article/p-tsngdsaz-dy.htmlcode

相關文章
相關標籤/搜索