Running and Shutting down MySQL Server:
- Check if MySQL server is running using 'ps -ef | grep mysqld' command. Start server using './safe_mysqld &' if not running.
- Shut down running server using './mysqladmin -u root -p shutdown' command.
Setting Up a MySQL User Account:
- Add new user to 'user' table in 'mysql' database using INSERT query, encrypting password.
- Use FLUSH PRIVILEGES to reload grant tables and allow connection with new user.
- Can also use GRANT SQL command to add user for a specific database.
The /etc/my.cnf File