<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> </font></div>    if I run<br>>     sudo service mysql restart<br>><br>>     I get<br>>     Rather than invoking init scripts through /etc/init.d, use the<br>>     service(8)<br>>     utility, e.g. service mysql restart<br>><br>>     Since the script you are attempting to invoke has been converted to an<br>>     Upstart job, you may also use the stop(8)
 and then start(8) utilities,<br>>     e.g. stop mysql ; start mysql. The restart(8) utility is also available.<br>>     start: Unknown job: mysql<br>><br>>     Is there a clue in the above?<br>><br>>     sudo start mysql<br>>     gives<br>>     start: Unknown job: mysql<br>><br>Do you have a mysql.conf file in /etc/init/? Upstart needs this. Also <br>mysql has apparmor complications which might be screwing with you.<br><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_23_133854867134363"><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_23_133854867134363">>> I think you may be onto something with apparmor refernce but I don't know what.</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"
 class="yui_3_2_0_23_133854867134363"><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_23_133854867134363"><div class="yiv257012859yui_3_2_0_19_133854867134379 yui_3_2_0_24_133854867134374" style="font-family: times, serif; font-size: 12pt; ">sudo mysqld gives the following in the error log</div><div class="yiv257012859yui_3_2_0_21_133854718187163"><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:43:57 [Note] Plugin 'FEDERATED' is disabled.</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:43:57  InnoDB: Initializing buffer pool, size = 8.0M</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:43:57  InnoDB: Completed initialization of buffer pool</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family:
 times, serif; ">120601 22:43:57  InnoDB: Started; log sequence number 0 279056</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:43:57 [ERROR] Can't start server : Bind on unix socket: Permission denied</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:43:57 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:43:57 [ERROR] Aborting</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; "><br></div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:43:57  InnoDB: Starting shutdown...</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:44:02
  InnoDB: Shutdown completed; log sequence number 0 279056</div><div class="yiv257012859yui_3_2_0_21_133854718187163" style="font-family: times, serif; ">120601 22:44:02 [Note] mysqld: Shutdown complete</div><div><br></div><div><span style="font-family: times, serif; "> I don't think I have another mysqld running at least not according to ps -aef |grep mysql</span><br></div><div><span style="font-family: times, serif; "><br></span></div><div><span style="font-family: times, serif; "><span style="font-size: 12pt; ">/var/run/mysqld/mysqld.sock does not exist </span><span style="font-size: 12pt; ">/var/run/mysqld/ is empty</span><br></span></div><div><span style="font-family: times, serif; "><span style="font-size: 12pt; "><br></span></span></div><div><div id="yiv829567519" style="font-family: times, serif; "><span style="font-size: 12pt; ">I did find </span><a rel="nofollow" target="_blank"
 href="https://lists.ubuntu.com/archives/ubuntu-server-bugs/2011-October/064838.html" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12pt; ">https://lists.ubuntu.com/archives/ubuntu-server-bugs/2011-October/064838.html</a></div><div id="yiv829567519" style="font-family: times, serif; ">and I changed </div><div id="yiv829567519" style="font-family: times, serif; "><br></div><pre style="font-family: 'Courier New'; white-space: pre-wrap; ">/var/run/mysqld/mysqld.pid w,
/var/run/mysqld/mysqld.sock w,
to</pre><pre style="font-family: 'Courier New'; white-space: pre-wrap; ">/{,var/}run/mysqld/mysqld.pid w, </pre><div id="yiv829567519" style="font-family: times, serif; "><span style="white-space: pre-wrap; font-size: 12pt; "> /{,var/}run/mysqld/mysqld.sock w,</span> </div><div id="yiv829567519" style="font-family: times, serif; "><br></div><div id="yiv829567519" style="font-family: times, serif; ">but that did not change anything - still get the permissions error</div></div></div></div> </div> </blockquote></div>   </div></body></html>