How can I ensure the MySQL service starts automatically on system boot to avoid this error after a reboot?

Question

Grade: Education Subject: Support
How can I ensure the MySQL service starts automatically on system boot to avoid this error after a reboot?
Asked by:
106 Viewed 106 Answers

Answer (106)

Best Answer
(164)
Use the command `sudo systemctl enable mysql` (or `sudo systemctl enable mariadb`). This will configure the service to start automatically when the system boots up.