mysql - brew services list 显示已启动但 mariadb 无法连接

标签 mysql macos mariadb homebrew

我已经安装了 mariadb 10.4(这是最新版本)。并改变一个我安装了 mariadb 10.2 和 10.3 。之后我重新启动后 mariadb 无法连接。

这是我运行时的列表 brew 服务列表 ➜~brew 服务列表

Name         Status  User   Plist
mariadb      started darren /Users/darren/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
mariadb@10.2 stopped
mariadb@10.3 stopped
postgresql   stopped
redis        stopped

我怀疑有多个 mariadb 实例正在运行。如何从列表中删除 mariadb@10.2mariadb@10.3

我转到此文件夹/Users/darren/Library/LaunchAgents/这是该文件夹中的列表

➜  LaunchAgents ls -la
total 32
drwxr-xr-x@  6 darren  staff   192 Oct 16 20:49 .
drwx------@ 66 darren  staff  2112 Oct 15 09:55 ..
-rw-r--r--@  1 darren  staff   810 Oct 14 09:15 com.google.keystone.agent.plist
-rw-r--r--@  1 darren  staff   916 Oct 14 09:15 com.google.keystone.xpcservice.plist
-rw-r--r--   1 darren  staff   541 Oct 16 20:49 homebrew.mxcl.mariadb.plist
-rw-r--r--@  1 darren  staff   677 Oct 15 08:40 org.virtualbox.vboxwebsrv.plist

mariadb@10.2mariadb@10.3 看起来没有 LaunchAgents

感谢您的帮助!

最佳答案

我必须执行这些步骤才能返回 mariadb 10.3

brew uninstall mariadb
brew uninstall mariadb@10.3
brew uninstall mariadb@10.2

install previous version with

brew install mariadb@10.3


brew switch  mariadb@10.3 10.3.16_1



Add /usr/local/opt/mariadb@10.3/bin to /etc/paths

关于mysql - brew services list 显示已启动但 mariadb 无法连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58435215/

相关文章:

python - 如何在 Mac 上安装 python 补丁

php - 在 OS X 中为捆绑的 PHP 安装扩展

php - 我的应用程序中的哪些文件产生缓慢的 Mysql 查询日志条目

mysql - 如何提高风数据SQL查询性能

PHP MYSQLI_ASYNC 插入查询并继续

MySQL 不同计数

mysql - 提高 mysql 对 google cloud sql 上的表的查询性能

mysql - SQL 检查某个值是否存在于任何列中并返回另一列列出的值

mysql - PHP 中的 SQL 查询和输出不起作用 - 500 内部服务器错误

macos - 是否可以在 Mac OS X 上构建 FreeGLUT?