mysql - mac 使用brew安装Mariadb问题.
问题描述
Mac先卸载MySQL, 然后使用brew install mariadb安装成功后, 启动时无法使用mariadb, 请大牛们不惜指点指点, 怎么采用mariadb, 谢谢
如下图
怀疑是这个问题:
$brew info mariadb...==> CaveatsA '/etc/my.cnf' from another install may interfere with a Homebrew-builtserver starting up correctly...
问题解答
回答1:已解决;
确保安装xcode;
brew 检测 brew doctor; 显示Your system is ready to brew.
brew升级, brew update;升级过程很慢, 也有些许问题, github 上brew关于更新问题,
cd '$(brew --repo)' && git fetch && git reset --hard origin/master && brew update
github中指出可以在遇到问题时对brew doctor和brew update多执行两次,
4.删除原来的Mariadb, brew uninstall mariadb; 重新安装brew install mariadb;5.启动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
相关文章:
1. 绝对定位和fied定位,键盘弹起对布局的影响2. nginx英文文档的WebSocket proxying部分没看太明白,麻烦推荐一点中文文章3. angular.js - js 点击事件onclick=“”,引号内的函数名字 可以为 变量吗4. angular.js - 怎样在使用ng-repeat属性的标签里面监听单个事件,使其能够单个改变CSS。5. javascript - vue生成一维码?求助!!!!!急6. ueditor上传服务器提示后端配置项没有正常加载,求助!!!!!7. python - 关于matplotlib的x轴显示的问题8. angular.js - angularjs 怎么封装 upload 上传9. android 文件File删除问题10. vim - docker中新的ubuntu12.04镜像,运行vi提示,找不到命名.
