Try /usr/local/mysql/bin/mysqld_safe.
Example:
shell> sudo /usr/local/mysql/bin/mysqld_safe
(Enter your password, if necessary)
(Press Control-Z)
shell> bg
(Press Control-D or enter "exit" to exit the shell)
You can also add these lines to your bash startup scripts:
export MYSQL_HOME=/usr/local/mysql
alias start_mysql='sudo $MYSQL_HOME/bin/mysqld_safe &'
alias stop_mysql='sudo $MYSQL_HOME/bin/mysqladmin shutdown'
Want to be a SQL expert? Come and join this SQL training and certification program by Intellipaat.
If you want to know more about MySQL, refer to the below MySQL tutorial video that will help you out in a better way: