It's a long story how I ended up having to do this, but I'm trying to delete our Remote MySQL profile from WHM, but since it's the default, I need to make the local MySQL server the default. (We are still going to actually use the remote db server, it's just that we don't want WHM totry to manage it)
The problem is that the local MySQL server won't start.
vendor preset: disabled seems to be the root cause of why it won't start - how do I set this to enabled?
The problem is that the local MySQL server won't start.
Code:
service mysql status
Redirecting to /bin/systemctl status mysql.service
● mysql.service - MySQL Server
Loaded: loaded (/etc/systemd/system/mysql.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2021-04-26 18:11:31 AEST; 13min ago
Process: 14158 ExecStart=/usr/bin/mysqld_safe (code=exited, status=1/FAILURE)
Main PID: 14158 (code=exited, status=1/FAILURE)
Apr 26 18:11:30 webserver.com systemd[1]: Started MySQL Server.
Apr 26 18:11:31 webserver.com mysqld_safe[14158]: /usr/bin/mysqld_safe: line 616: /webserver.com.err: Permis...enied
Apr 26 18:11:31 webserver.com mysqld_safe[14158]: 210426 18:11:31 mysqld_safe error: log-error set to '/webserver.com...sql'.
Apr 26 18:11:31 webserver.com systemd[1]: mysql.service: main process exited, code=exited, status=1/FAILURE
Apr 26 18:11:31 webserver.com systemd[1]: Unit mysql.service entered failed state.
Apr 26 18:11:31 webserver.com systemd[1]: mysql.service failed.