Mac先卸載MySQL, 而後使用brew install mariadb安裝成功後, 啓動時沒法使用mariadbmysql |
解決方法git
若是已安裝mysql, 能夠先刪除了: brew uninstall mysql brew cleanup;github
1. 確保安裝最新xcode;sql 2. brew 檢測 brew doctor; 顯示Your system is ready to brew.xcode 3. brew升級, brew update;升級過程很慢, 也有些許問題, [github 上brew關於更新問題,](https://github.com/Homebrew/brew);github中指出能夠在遇到問題時對`brew doctor`和`brew update`多執行兩次,spa 4. 刪除原來的Mariadb, brew uninstall mariadb; 從新安裝brew install mariadb;code 5. 啓動`mysql.server start`;server 6. 連接`mysql -uroot`,blog |
第二個問題: 運行mysql_install_db安裝程序遇到的問題:ip
解決方法: 先關閉mysql, 而後再次執行安裝 $ mysql.server stop |