You can start the server with the following commands:
- Using service:
shell> sudo service mysql start
- Using init.d:
shell> sudo /etc/init.d/mysql start
- If you do not find the startup script (when you are doing binary installation), you can copy from the location where you untarred.
shell> sudo cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql
- If your installation includes systemd support:
shell> sudo systemctl start mysqld
- If the systemd support is not there, MySQL can be started using mysqld_safe. mysqld_safe is the launcher script for mysqld that safeguards the mysqld process. If mysqld is killed, mysqld_safe attempts to start the process again:
shell> sudo mysqld_safe --user=mysql & ...