To install mysql as a service, run the following commands from the support-files directory in the installation. In my case
$ cp mysql.server /etc/init.d/mysql $ chmod +x /etc/init.d/mysql $ chkconfig --add mysql $ systemctl enable mysql
Then, you can simply start mysql with the following command.
$ sudo /etc/init.d/mysql start
How useful was this post?
Click on a star to rate it!