mac系統下安裝mysql步驟

來源:互聯網
上載者:User

標籤:提示資訊   啟動   not   support   generate   目錄   man   安裝完成   port   

1.下載mysql-5.7.13-osx10.11-x86_64.dmg安裝包,並點擊dmg安裝包進行安裝

2.安裝完成後彈出如以下提示資訊:

2016-06-23T01:14:48.649253Z 1 [Note] A temporary password is generated for [email protected]: lFuFYqu;M0-T

If you lose this password, please consult the section How to Reset the Root Password in the MySQL reference manual.


3.root使用者預設密碼是 lFuFYqu;M0-T ;安裝後的目錄是/usr/local/mysql-版本號碼
4.可以在“設定”裡啟動和停止mysql服務,也可以通過以下命令啟東
support-files/mysql.server start
support-files/mysql.server stop
support-files/mysql.server stute
5.登陸mysql命令:./mysql -u root -p 斷行符號鍵後提示輸入上面的預設密碼
進入到後,修改預設密碼,否則不能對資料庫進行操作:
修改預設密碼:
mysql>set password = password(‘123‘);

6.安裝完成,可以用新密碼登陸了。

mac系統下安裝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.