ubuntu 11.04 mysql

本文介绍了在Ubuntu系统中使用不同的命令来启动和重启MySQL服务的方法。包括使用service和start命令来替代传统的/etc/init.d/目录下的init脚本,并指出了Upstart作业已将这些脚本转换的事实。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

jxzhang@ubuntu:~$ 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
jxzhang@ubuntu:~$ sudo start mysql
start: Job is already running: mysql
jxzhang@ubuntu:~$ sudo restart mysql
mysql start/running, process 8010


yaozer@local:~$ sudo /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
mysql start/running, process 18095
yaozer@local:~$ sudo restart mysql
mysql start/running, process 18137

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值