hello<span class="gI"><span class="ik"></span><span class="gD" style="color: rgb(204, 0, 96);"> Christopher,<br><br></span></span>i run apt-get install --reinstall mysql-server and start /etc/init.d/mysql start, but still got the same error &quot;ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)&quot;.<br>
<br>i even create /var/run/mysqld/mysqld.sock file and then restart mysql, but the mysqld.sock file disappear and get the same error.<br><br>i got this problem when i finished install/configure drupal site and make it up and running, can browse the drupal site, loging from phpmyadmin, run /etc/init.d/mysql start without any issue, log to mysql from command line without any issue, then i restart the VM (use VM for this), then got the above problem.<br>

<br><br><br><div class="gmail_quote">On Fri, Nov 5, 2010 at 3:24 AM, Christopher M. Jones <span dir="ltr">&lt;<a href="mailto:cjones@partialflow.com">cjones@partialflow.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The log is telling you that the users table doesn&#39;t exist. I don&#39;t know<br>
how you installed mysql, or what distro you are using. If you installed<br>
using a package management tool then an administrative user should have<br>
been created. Review your installation process and make sure that all<br>
the necessary databases and tables are there, including the one<br>
mentioned in your logs. If you&#39;re using apt / dpkg and friends on a<br>
debian system, then you might try something like<br>
<br>
apt-get install --reinstall mysql-server<br>
<div class="im"><br>
On 11/03/2010 07:56 PM, Qiubo Su (David Su) wrote:<br>
&gt; dear drupal support,<br>
&gt;<br>
&gt; &quot;/var/run/mysqld/&quot; does exists. edit */etc/mysql/my.cnf* file to have<br>
&gt; &quot;bind-address&quot; set to localhost and &quot;socket&quot; is set to<br>
&gt; /var/run/mysqld/mysqld.sock already.<br>
&gt;<br>
&gt; but after run /etc/init.d/mysql start, still got below output<br>
&gt;<br>
&gt; Rather than invoking init scripts through /etc/init.d, use the service(8)<br>
&gt; utility, e.g. service mysql restart<br>
&gt;<br>
&gt; Since the script you are attempting to invoke has been converted to an<br>
&gt; Upstart job, you may also use the restart(8) utility, e.g. restart mysql<br>
&gt;<br>
&gt; mysql start/running<br>
&gt;<br>
&gt; run mysql, still got below output as well<br>
&gt;<br>
&gt; ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket<br>
&gt; &#39;/var/run/mysqld/mysqld.sock&#39; (2)<br>
&gt;<br>
&gt; tail -10f /var/log/mysql/error.log, still got the same error<br>
&gt;<br>
&gt; 101104 12:41:09 [Note] Plugin &#39;FEDERATED&#39; is disabled.<br>
&gt; 101104 12:41:09  InnoDB: Started; log sequence number 0 44233<br>
&gt; 101104 12:41:09 [ERROR] Fatal error: Can&#39;t open and lock privilege<br>
&gt; tables: Table &#39;mysql.user&#39; doesn&#39;t exist<br>
&gt;<br>
&gt; by the way, the server use dynamic IP address and the<br>
&gt; /etc/network/interfaces is as below<br>
&gt;<br>
&gt; auto lo<br>
&gt; iface lo inet loopback<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Nov 4, 2010 at 12:11 PM, Michel Morelli &lt;<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Il 03/11/2010 21:35, Qiubo Su (David Su) ha scritto:<br>
&gt;&gt;     hello drupal support team,<br>
&gt;&gt;<br>
&gt;&gt;     thanks for your reply.<br>
&gt;&gt;     i tried /etc/init.d/mysql start and it is ok for the database,<br>
&gt;&gt;     however, after i reboot the pc and run /etc/init.d/mysql start as<br>
&gt;&gt;     below, it doesn&#39;t work again. thanks for your help with this again.<br>
&gt;&gt;<br>
&gt;&gt;     root@quicksu-desktop:/var/www/sites/all/modules# /etc/init.d/mysql<br>
&gt;&gt;     start<br>
&gt;&gt;<br>
&gt;&gt;     Rather than invoking init scripts through /etc/init.d, use the<br>
&gt;&gt;     service(8)<br>
&gt;&gt;     utility, e.g. service mysql start<br>
&gt;&gt;<br>
&gt;&gt;     Since the script you are attempting to invoke has been converted to an<br>
&gt;&gt;<br>
&gt;&gt;     Upstart job, you may also use the start(8) utility, e.g. start mysql<br>
&gt;&gt;     start: Job is already running: mysql<br>
&gt;&gt;<br>
&gt;&gt;     root@quicksu-desktop:/var/www/sites/all/modules# mysql<br>
&gt;&gt;     ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through<br>
&gt;&gt;     socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)<br>
&gt;     Hi, try to see if &quot;/var/run/mysqld/&quot; exist.<br>
&gt;     Try to edit */etc/mysql/my.cnf* file and see if &quot;bind-address&quot; is<br>
&gt;     set to localhost and if &quot;socket&quot; is set to /var/run/mysqld/mysqld.sock.<br>
&gt;<br>
&gt;     M.<br>
&gt;<br>
&gt;     --<br>
</div>&gt;     Michel&#39;ZioBudda&#39;  <a href="mailto:Morellimichel@ziobuddalabs.it">Morellimichel@ziobuddalabs.it</a>  &lt;mailto:<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>&gt;<br>
<div class="im">&gt;     Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)<br>
&gt;     Telefono: 0200619074<br>
&gt;     Telefono Cell: +39-3939890025 --  Fax: +39-0291390660<br>
&gt;<br>
&gt;     <a href="http://www.ziobudda.net" target="_blank">http://www.ziobudda.net</a>                          ICQ: 58351764<br>
&gt;     <a href="http://www.ziobuddalabs.it" target="_blank">http://www.ziobuddalabs.it</a>                       Skype: zio_budda<br>
</div>&gt;     <a href="http://www.ziodrupal.net" target="_blank">http://www.ziodrupal.net</a>                          <a href="mailto:MSN%3Amichel@ziobuddalabs.it">MSN:michel@ziobuddalabs.it</a>  &lt;mailto:<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>&gt;<br>

&gt;                                               <a href="mailto:JABBER%3Amichel@ziobuddalabs.it">JABBER:michel@ziobuddalabs.it</a>  &lt;mailto:<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>&gt;<br>

&gt;<br>
&gt;<br>
<font color="#888888">--<br>
</font><div><div></div><div class="h5">[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br>