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. docker 下面创建的IMAGE 他们的 ID 一样?这个是怎么回事????2. 在应用配置文件 app.php 中找不到’route_check_cache’配置项3. html按键开关如何提交我想需要的值到数据库4. mysql取模分表与分表5. gvim - 谁有vim里CSS的Indent文件, 能缩进@media里面的6. HTML 5输入框只能输入汉字、字母、数字、标点符号?正则如何写?7. 跟着课件一模一样的操作使用tp6,出现了错误8. PHP类属性声明?9. objective-c - ios 怎么实现微信联系列表 最好是swift10. java - 安卓接入微信登录,onCreate不会执行
