Run MySQL how to start and shut down the MySQL server Run the database server $ mysqld_safe --defaults-file=/path/to/my.cnf Connect to the database server $ mysql -uroot Shut down the database server $ mysqladmin -uroot shutdown