Starting MySQL



Starting MySQL

You have to start the MySQL process before you can create your databases. To configure MySQL to start at boot time, use the chkconfig command:

     [root@bigboy tmp]# chkconfig mysqld on

You can start, stop, and restart MySQL after boot time using the service commands:

     [root@bigboy tmp]# service mysqld start
     [root@bigboy tmp]# service mysqld stop
     [root@bigboy tmp]# service mysqld restart

Remember to restart the mysqld process every time you make a change to the configuration file for the changes to take effect on the running process.

You can test whether the mysqld process is running with:

     [root@bigboy tmp]# pgrep mysqld

You should get a response of plain old process ID numbers.