how can i make mysql start automatically on linux?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
migrated from stackoverflow.com Dec 21 '09 at 12:38
|
Here are the complete steps to make sure mysql is started at boot time on RHEL4. They need to be run with root permission.
Unless you installed mysqld in a non-default way, this should show that mysqld is set to start at run levels 3,4 and 5:
If this isn't the case, set up the correct run levels. If you didn't get any output from the previous command:
Then:
Finally, use chkconfig --list again to make sure you're set up correctly. |
|||
|
|
|
This will depend on your linux distribution. On Debian/Ubuntu something like this would work:
|
|||
|
|
|
If you have installed mysql from the package manager it should set it up to start by default. |
|||
|
|