mysql - mac 使用brew安裝Mariadb問題.
問題描述
Mac先卸載MySQL, 然后使用brew install mariadb安裝成功后, 啟動時無法使用mariadb, 請大牛們不惜指點指點, 怎么采用mariadb, 謝謝
如下圖
懷疑是這個問題:
$brew info mariadb...==> CaveatsA '/etc/my.cnf' from another install may interfere with a Homebrew-builtserver starting up correctly...
問題解答
回答1:已解決;
確保安裝xcode;
brew 檢測 brew doctor; 顯示Your system is ready to brew.
brew升級, brew update;升級過程很慢, 也有些許問題, github 上brew關于更新問題,
cd '$(brew --repo)' && git fetch && git reset --hard origin/master && brew update
github中指出可以在遇到問題時對brew doctor和brew update多執(zhí)行兩次,
4.刪除原來的Mariadb, brew uninstall mariadb; 重新安裝brew install mariadb;5.啟動mysql.server start;6.鏈接mysql -uroot,
Welcome to the MariaDB monitor. Commands end with ; or g.Your MariaDB connection id is 4Server version: 10.1.19-MariaDB HomebrewCopyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.Type ’help;’ or ’h’ for help. Type ’c’ to clear the current input statement.MariaDB [(none)]> Every thing is OK
相關文章:
1. 關于nginx location配置的問題,root到底是什么2. angular.js - angularjs的自定義過濾器如何給文字加顏色?3. 關于docker下的nginx壓力測試4. docker鏡像push報錯5. angular.js - angular內(nèi)容過長展開收起效果6. linux - openSUSE 上,如何使用 QQ?7. linux - 升級到Python3.6后GDB無法正常運行?8. 并發(fā)模型 - python將進程池放在裝飾器里為什么不生效也沒報錯9. 大家好,請問在python腳本中怎么用virtualenv激活指定的環(huán)境?10. python的前景到底有大?如果不考慮數(shù)據(jù)挖掘,機器學習這塊?
