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. python - 獲取到的數(shù)據(jù)生成新的mysql表2. javascript - js 對(duì)中文進(jìn)行MD5加密和python結(jié)果不一樣。3. mysql里的大表用mycat做水平拆分,是不是要先手動(dòng)分好,再配置mycat4. window下mysql中文亂碼怎么解決??5. sass - gem install compass 使用淘寶 Ruby 安裝失敗,出現(xiàn) 4046. python - (初學(xué)者)代碼運(yùn)行不起來(lái),求指導(dǎo),謝謝!7. 為啥不用HBuilder?8. python - flask sqlalchemy signals 無(wú)法觸發(fā)9. python的文件讀寫(xiě)問(wèn)題?10. 為什么python中實(shí)例檢查推薦使用isinstance而不是type?
