linux學習記錄-------mysql安裝

來源:互聯網
上載者:User

標籤:margin   報錯   china   nodeps   linux   mon   bsp   img   ict   

1、下載,開啟 http://dev.mysql.com/downloads/mysql/ 選擇開發人員版本,不需要註冊登陸的,點擊下載後左下角有一行小字:No thanks, just start my download.點擊即可下載

2、將下載到的檔案上傳到linux上, tar -xvf MySQL-5.7.4-m14-0.2.m14.el7.x86_64.rpm-bundle.tar釋放

3、下載系統內建的mariadb:

  1)rpm -e --nodeps mariadb-libs-5.5.33a-3.el7.x86_64

  2)rpm -e --nodeps mariadb-libs-5.5.33a-3.el7.x86_64

  3)rpm -e mariadb-devel –nodeps

3、依次安裝 

rpm -ivh mysql-community-common-5.7.4-0.2.m14.el7.x86_64.rpm

rpm -ivh mysql-community-libs-5.7.4-0.2.m14.el7.x86_64.rpm

rpm -ivh mysql-community-embedded-5.7.4-0.2.m14.el7.x86_64.rpm

rpm -ivh mysql-community-devel-5.7.4-0.2.m14.el7.x86_64.rpm

rpm -ivh mysql-community-embedded-devel-5.7.4-0.2.m14.el7.x86_64.rpm

rpm -ivh mysql-community-client-5.7.4-0.2.m14.el7.x86_64.rpm

rpm -ivh mysql-community-server-5.7.4-0.2.m14.el7.x86_64.rpm

根據提示,處理依賴關係。

4、安裝成功,啟動mysql.service,。

5、MySQL5.7為root使用者隨機產生了一個密碼,在error log中,關於error log的位置,如果安裝的是RPM包,則預設是/var/log/mysqld.log

6、根據擷取的隨機密碼登陸,執行SET PASSWORD = PASSWORD(‘123456‘),報錯:

密碼符合安全性原則。。。。。

解決辦法,可參照:https://www.cnblogs.com/ivictor/p/5142809.html,謝謝這位大牛!

文檔參考:

中文 MySQL 文檔:http://tool.oschina.net/apidocs/apidoc?api=mysql-5.1-zh

英文 MySQL 文檔:http://tool.oschina.net/apidocs/apidoc?api=mysql-5.5-en

 

----------mysql安裝配置完成,做如上記錄2018.01.20

  

linux學習記錄-------mysql安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.