<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 12, 2018 at 9:09 AM, Volker Wysk <span dir="ltr"><<a href="mailto:post@volker-wysk.de" target="_blank">post@volker-wysk.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_-2316316784396556460gmail-">Am Freitag, 12. Januar 2018, 08:46:21 CET schrieb Kevin O'Gorman:<br>
> On Fri, Jan 12, 2018 at 7:22 AM, Volker Wysk <<a href="mailto:post@volker-wysk.de" target="_blank">post@volker-wysk.de</a>> wrote:<br>
><br>
> > Am Freitag, 12. Januar 2018, 09:08:22 CET schrieb Wade Smart:<br>
> > > On Fri, Jan 12, 2018 at 9:03 AM, Kevin O'Gorman <<a href="mailto:kogorman@gmail.com" target="_blank">kogorman@gmail.com</a>><br>
> > wrote:<br>
> > ><br>
> > > > I need to start and stop mysql, and I've only figured out how to stop<br>
> > it.<br>
> > > > I need to start it (not rebooting) so that I can temporarily use<br>
> > different<br>
> > > > options. In my case, I need --skip-grant-tables.<br>
> ><br>
> > > sudo service mysql start<br>
> ><br>
> > This just starts mysql the normal way. But the OP said, that he needs to<br>
> > start it temporarily with self specified options.<br>
> ><br>
> > The following is how mysql is normally started (this is taken from<br>
> > /etc/init.d/mysql):<br>
> ><br>
> > # Start MySQL!<br>
> > su - mysql -s /bin/sh -c "/usr/bin/mysqld_safe > /dev/null<br>
> > 2>&1 &"<br>
> ><br>
> > So the OP could use this, modify it as needed.<br>
> ><br>
> > Cheers<br>
> > Volker<br>
> ><br>
> ><br>
> Thanks. Useful, I hope, but SHEESH! that mysqld_safe is over 1,000 lines<br>
> of code. I'll figure out how to use and modify it somehow....<br>
<br>
</span>Good luck<br>
<div class="gmail-m_-2316316784396556460gmail-HOEnZb"><div class="gmail-m_-2316316784396556460gmail-h5"><br>
Volker<br clear="all"><br></div></div></blockquote><div><br></div><div>Thanks, but even copying that command line does not work:</div><div> <span class="gmail-m_-2316316784396556460gmail-">su - mysql -s /bin/sh -c "/usr/bin/mysqld_safe > /dev/null 2>&1 &"</span></div></div></div><div class="gmail_extra"> No directory, logging in with HOME=/<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">And mysql itself reports</div><div class="gmail_extra"> ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)</div><div class="gmail_extra"> <br></div><div class="gmail_extra">But 'service mysql start' works okay. I'll have to figure out how it does that. Or just temporarily edit mysqld_safe.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br>-- <br><div class="gmail-m_-2316316784396556460gmail_signature"><div dir="ltr"><div>Kevin O'Gorman<br></div>#define QUESTION ((bb) || (!bb)) /* Shakespeare */<br><br><div><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"></span></span><table cellspacing="0" cellpadding="0" border="0" width="448"><tbody><tr><td width="25"><img src="cid:XVHDKDFDBURW.IMAGE_60.gif" height="21" width="25"></td>
<td width="423"><span style="font-family:Verdana,Geneva,sans-serif;color:rgb(0,153,0);margin-left:5px;font-size:10px">Please consider the environment before printing this email.</span></td></tr></tbody></table><br></div></div></div>
</div></div>