mysql - mac 使用brew安裝Mariadb問(wèn)題.
問(wèn)題描述
Mac先卸載MySQL, 然后使用brew install mariadb安裝成功后, 啟動(dòng)時(shí)無(wú)法使用mariadb, 請(qǐng)大牛們不惜指點(diǎn)指點(diǎn), 怎么采用mariadb, 謝謝
如下圖
懷疑是這個(gè)問(wèn)題:
$brew info mariadb...==> CaveatsA '/etc/my.cnf' from another install may interfere with a Homebrew-builtserver starting up correctly...
問(wèn)題解答
回答1:已解決;
確保安裝xcode;
brew 檢測(cè) brew doctor; 顯示Your system is ready to brew.
brew升級(jí), brew update;升級(jí)過(guò)程很慢, 也有些許問(wèn)題, github 上brew關(guān)于更新問(wèn)題,
cd '$(brew --repo)' && git fetch && git reset --hard origin/master && brew update
github中指出可以在遇到問(wèn)題時(shí)對(duì)brew doctor和brew update多執(zhí)行兩次,
4.刪除原來(lái)的Mariadb, brew uninstall mariadb; 重新安裝brew install mariadb;5.啟動(dòng)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
相關(guān)文章:
1. 關(guān)于docker下的nginx壓力測(cè)試2. angular.js - angularjs的自定義過(guò)濾器如何給文字加顏色?3. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問(wèn)題。4. docker-machine添加一個(gè)已有的docker主機(jī)問(wèn)題5. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.6. 為什么我ping不通我的docker容器呢???7. docker - 如何修改運(yùn)行中容器的配置8. nignx - docker內(nèi)nginx 80端口被占用9. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問(wèn)題10. docker鏡像push報(bào)錯(cuò)
