How can I fix brew-installed MariaDB that hangs on `mysql.server stop` and doesn’t stop?
问题 This question is not a duplicate of mariadb server: I can't stop the server with `mysql.server stop`. I don’t want to run MariaDB at boot so brew services isn’t an option. MariaDB version is 10.4.11-MariaDB . 回答1: Think I found the culprit. Having a look at the source code of mysql.server ( cat /usr/local/bin/mysql.server ), I discovered that running mysql.server start runs mysqld_safe as me ( whoami ) which is what I expected. Now, I also discovered that running mysql.server stop runs a su