mysqltest
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
server starting up correctly.
MySQL is configured to only allow connections from localhost by default
To connect:
mysql -uroot
mariadb@10.2 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have mariadb@10.2 first in your PATH, run:
echo 'export PATH="/usr/local/opt/mariadb@10.2/bin:$PATH"' >> ~/.profile
For compilers to find mariadb@10.2 you may need to set:
export LDFLAGS="-L/usr/local/opt/mariadb@10.2/lib"
export CPPFLAGS="-I/usr/local/opt/mariadb@10.2/include"
To have launchd start mariadb@10.2 now and restart at login:
brew services start mariadb@10.2
Or, if you don't want/need a background service you can just run:
/usr/local/opt/mariadb@10.2/bin/mysql.server start
==> Summary
🍺 /usr/local/Cellar/mariadb@10.2/10.2.37: 653 files, 164.6MB
posted on 2021-04-22 21:50 andydaopeng 阅读(70) 评论(0) 编辑 收藏 举报