Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I try to restart mysql server on Ubuntu 12.04:

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

viggy@ubuntu:/$ service mysql restart
stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.83" (uid=1000 pid=4395 comm="stop mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

I'm not sure what that message is saying.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You need to be root or use

sudo service mysql restart

in order to send the restart command as root.

share|improve this answer

mysql is the client. You probably want service mysqld restart. And unless you're running as root, you'll probably want to add sudo to the command as well.

share|improve this answer
    
Turns out Ubuntu's brain-dead design decisions are continuing. Why on earth they'd make the service named mysql that starts the mysqld process is beyond me. –  MDMarra Nov 8 '12 at 18:20
1  
Because Shuttleworth... –  Magellan Nov 8 '12 at 19:30

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.