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. html5 - css3scale和rotate同時(shí)使用轉(zhuǎn)換成matrix寫法該如何轉(zhuǎn)換?2. win10 python3.5 matplotlib使用報(bào)錯(cuò)3. php多任務(wù)倒計(jì)時(shí)求助4. css - 如何把一個(gè)視圖放在左浮動(dòng)定位的視圖的上面?5. javascript - jquery怎么讓a標(biāo)簽跳轉(zhuǎn)后保持tab的樣式6. MySQL的聯(lián)合查詢[union]有什么實(shí)際的用處7. javascript - vue組件的重復(fù)調(diào)用8. javascript - 小demo:請(qǐng)教怎么做出類似于水滴不斷擴(kuò)張的效果?9. python的正則怎么同時(shí)匹配兩個(gè)不同結(jié)果?10. javascript - axios請(qǐng)求回來(lái)的數(shù)據(jù)組件無(wú)法進(jìn)行綁定渲染
