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多執行兩次,
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. angular.js - 不適用其他構建工具,怎么搭建angular1項目2. python 如何實現PHP替換圖片 鏈接3. mysql - 一個表和多個表是多對多的關系,該怎么設計4. html5 - iOS的webview加載出來的H5網頁,怎么修改html標簽select的樣式字體?5. mysql主從 - 請教下mysql 主動-被動模式的雙主配置 和 主從配置在應用上有什么區別?6. android-studio - Android 動態壁紙LayoutParams問題7. angular.js - 三大框架react、vue、angular的分析8. 主從備份 - 跪求mysql 高可用主從方案9. python如何不改動文件的情況下修改文件的 修改日期10. python - django 里自定義的 login 方法,如何使用 login_required()
