Mac先卸载MySQL
, 然后使用brew install mariadb
安装成功后
, 启动时无法使用mariadb, 请大牛们不惜指点指点, 怎么采用mariadb, 谢谢
如下图
怀疑是这个问题:
$brew info mariadb
.
.
.
==> Caveats
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
server starting up correctly.
.
.
Resolved;
Make sure xcode is installed;
brew detection
brew doctor
; displaysYour system is ready to brew.
brew doctor
; 显示Your system is ready to brew.
brew升级,
brew update
;升级过程很慢, 也有些许问题, github 上brew关于更新问题,github中指出可以在遇到问题时对
brew doctor
和brew update
多执行两次,4.删除原来的Mariadb,
brew upgrade,brew uninstall mariadb
; 重新安装brew install mariadb
;5.启动
mysql.server start
;6.链接
mysql -uroot
brew update
; the upgrade process is very slow, and there are some problems, brew on github has update issues,🎜 🎜It is pointed out in github that you can execute
brew doctor
andbrew update
twice more when you encounter problems, 🎜 🎜4. Delete the original Mariadb,brew uninstall mariadb
; Reinstallbrew install mariadb
;5. Start
mysql.server start
;6. Link
mysql -uroot
,🎜 rrreee 🎜Every thing is OK🎜 🎜