Start MySQL (
Figure 2.22).
Type the following at the prompt and press Return or Enter:
sudo./bin/mysqld_safe --user=mysql &
This line tells the server to keep
mysqld_safe running constantly. What the
mysqld_safe script does is check to see if
mysqld is running and, if it is not, start up the daemon. The very first time you start
mysqld_safe, it will immediately realize that
mysqld is not up and will therefore start it.
If MySQL fails to start, make note of the error message displayed and refer to Appendix A, "Troubleshooting," or the MySQL manual for assistance.