- // Mysql
- /etc/init.d/mysql start
- /etc/init.d/mysql stop
- /etc/init.d/mysql restart
在ubuntu启动mysql:没有加sudo,命令不起作用,必须加上sudo
harries@harries-laptop:/usr/local$ /etc/init.d/mysql start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mysql
命令前加上sudo
harries@harries-laptop:/usr/local$ sudo /etc/init.d/mysql start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mysql
mysql start/running, process 9209