Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed LAMP not so long ago and it worked fine but ever time I try start MYSQL server I see this thing:

$ /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
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.20" (uid=1000 pid=3137 comm="start mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

How can I fix this?

share|improve this question
I've noticed your accept rate is low. If possible, please consider closing some of your other open questions by selecting the best answer (if they have one). Consider which answers have been useful and need an upvote. We need users to maintain their questions so that the site can be an effective tool for the next person with your problems. For more details on best practices consider reading the FAQ on asking questions. – Eliah Kagan Jun 30 '12 at 12:40

2 Answers

up vote 4 down vote accepted

You should just take some time to actually read the message since it is not an error. Try this instead:

sudo service mysql start

Any change in output?

The reason for this is that the traditional sysvinit have been replaced by Upstart / Services as of Ubuntu 6.10. However, a great load of packages still use the old sysvinit way, which have been left in place for backwards compability. The biggest difference, apart from having to use another command, is that upstart is event driven, on the contrary of sysvinit which is a sequencial service manager.

share|improve this answer
Oh wow thanks, sorry haha. – TheCyberShocker Jun 28 '12 at 8:15

There's nothing to fix. That is not an error. Ubuntu has converted your init.d script to an upstart job so that you use service util to start/stop a service which is much shorter to type than doing /etc/init.d/script

So now, instead of typing /etc/init.d/mysql start/stop/status you can just type service mysql start/stop/status or start/stop/status mysql

share|improve this answer
Oh wow thanks for the information! :D – TheCyberShocker Jun 28 '12 at 8:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.