一、下載MySQL
官網下載頁面點擊后進入如下頁面
按圖操作即可,接下來:
二、安裝和配置
安裝按照步驟來即可。但是要記住最后的初始密碼。
最后我們在電腦的系統偏好設置里面可以看見安裝的MySQL
默認MySQL是啟動的。
在打開之前我們需要在終端中配置一下。
PATH="$PATH":/usr/local/mysql/binmysql -u root -p#輸入密碼#Terminal顯示#Welcome to the MySQL monitor. Commands end with ; or /g.Your MySQL connection id is 10Server version: 5.7.12Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.mysql>SET PASSWORD = PASSWORD('new password');
操作完上面的就可以正常使用MySQL。
詳細可以參考《Mac OS系統安裝Mysql》 。
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持VeVb武林網。
新聞熱點
疑難解答