首頁  >  問答  >  主體

mysql - mac 使用brew安装Mariadb问题.

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.
.
.
ringa_leeringa_lee2742 天前658

全部回覆(1)我來回復

  • 高洛峰

    高洛峰2017-04-17 16:00:30

    已解決;

    1. 確保安裝xcode;

    2. brew 偵測 brew doctor; 顯示Your system is ready to brew.brew doctor; 显示Your system is ready to brew.

    3. brew升级, brew update;升级过程很慢, 也有些许问题, github 上brew关于更新问题,

    cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update

    github中指出可以在遇到问题时对brew doctorbrew update多执行两次,

    4.删除原来的Mariadb, brew uninstall mariadb; 重新安装brew install mariadb;
    5.启动mysql.server start;
    6.链接mysql -uroot

    brew升級, brew update;升級過程很慢, 也有些許問題, github 上brew關於更新問題,
    🎜
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 4
    Server version: 10.1.19-MariaDB Homebrew
    
    Copyright (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)]> 
    
    🎜github中指出可以在遇到問題時對brew doctorbrew update多執行兩次, 🎜 🎜4.刪除原先的Mariadb, brew uninstall mariadb;重新安裝brew install mariadb;
    5.啟動mysql.server start;
    6.連結mysql -uroot,🎜 rrreee 🎜Every thing is OK🎜 🎜

    回覆
    0
  • 取消回覆