Question
How can I ensure the MySQL service starts automatically on system boot to avoid this error after a reboot?
Asked by: USER2985
106 Viewed
106 Answers
Answer (106)
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.