hello erik,<br><br>below are the results a) to e) by running the commands:<br><br>a) root@quicksu-desktop:/home/quicksu# netstat -a | grep mysql<br><br>b) root@quicksu-desktop:/home/quicksu# netstat -a | grep 3006<br><br>c) root@quicksu-desktop:/home/quicksu# nmap localhost<br>
<br>Starting Nmap 5.00 ( <a href="http://nmap.org">http://nmap.org</a> ) at 2010-11-05 12:19 NZDT<br>Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.<br>Interesting ports on localhost (127.0.0.1):<br>Not shown: 996 closed ports<br>
PORT    STATE SERVICE<br>21/tcp  open  ftp<br>80/tcp  open  http<br>443/tcp open  https<br>631/tcp open  ipp<br><br>Nmap done: 1 IP address (1 host up) scanned in 0.42 seconds<br><br>d) root@quicksu-desktop:/home/quicksu# nmap -A -T4 localhost<br>
<br>Starting Nmap 5.00 ( <a href="http://nmap.org">http://nmap.org</a> ) at 2010-11-05 12:21 NZDT<br>Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.<br>Interesting ports on localhost (127.0.0.1):<br>Not shown: 996 closed ports<br>
PORT    STATE SERVICE VERSION<br>21/tcp  open  ftp     vsftpd 2.2.2<br>80/tcp  open  http    Apache httpd 2.2.14 ((Ubuntu))<br>|  robots.txt: has 36 disallowed entries (15 shown)<br>|  /includes/ /misc/ /modules/ /profiles/ /scripts/ <br>
|  /sites/ /themes/ /CHANGELOG.txt /cron.php /INSTALL.mysql.txt <br>|  /INSTALL.pgsql.txt /install.php /INSTALL.txt /LICENSE.txt <br>|_ /MAINTAINERS.txt<br>|_ html-title: Site off-line | Drupal<br>443/tcp open  http    Apache httpd 2.2.14 ((Ubuntu))<br>
|  robots.txt: has 36 disallowed entries (15 shown)<br>|  /includes/ /misc/ /modules/ /profiles/ /scripts/ <br>|  /sites/ /themes/ /CHANGELOG.txt /cron.php /INSTALL.mysql.txt <br>|  /INSTALL.pgsql.txt /install.php /INSTALL.txt /LICENSE.txt <br>
|_ /MAINTAINERS.txt<br>|_ html-title: Site off-line | Drupal<br>631/tcp open  ipp     CUPS 1.4<br>No exact OS matches for host (If you know what OS is running on it, see <a href="http://nmap.org/submit/">http://nmap.org/submit/</a> ).<br>
TCP/IP fingerprint:<br>OS:SCAN(V=5.00%D=11/5%OT=21%CT=1%CU=30003%PV=N%DS=0%G=Y%TM=4CD34015%P=i686-<br>OS:pc-linux-gnu)SEQ(SP=CA%GCD=1%ISR=CC%TI=Z%CI=Z%II=I%TS=8)SEQ(SP=CA%GCD=2%<br>OS:ISR=CC%TI=Z%CI=Z%II=I%TS=8)OPS(O1=M400CST11NW6%O2=M400CST11NW6%O3=M400CN<br>
OS:NT11NW6%O4=M400CST11NW6%O5=M400CST11NW6%O6=M400CST11)WIN(W1=8000%W2=8000<br>OS:%W3=8000%W4=8000%W5=8000%W6=8000)ECN(R=Y%DF=Y%T=40%W=8018%O=M400CNNSNW6%<br>OS:CC=Y%Q=)T1(R=Y%DF=Y%T=40%S=O%A=S+%F=AS%RD=0%Q=)T2(R=N)T3(R=Y%DF=Y%T=40%W<br>
OS:=8000%S=O%A=S+%F=AS%O=M400CST11NW6%RD=0%Q=)T4(R=Y%DF=Y%T=40%W=0%S=A%A=Z%<br>OS:F=R%O=%RD=0%Q=)T5(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y<br>OS:%T=40%W=0%S=A%A=Z%F=R%O=%RD=0%Q=)T7(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%R<br>
OS:D=0%Q=)U1(R=Y%DF=N%T=40%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)I<br>OS:E(R=Y%DFI=N%T=40%CD=S)<br><br>Network Distance: 0 hops<br>Service Info: OS: Unix<br><br>OS and Service detection performed. Please report any incorrect results at <a href="http://nmap.org/submit/">http://nmap.org/submit/</a> .<br>
Nmap done: 1 IP address (1 host up) scanned in 30.47 seconds<br><br>e) root@quicksu-desktop:/home/quicksu# ps aux | grep mysql | grep -v grep<br><br><div class="gmail_quote">On Fri, Nov 5, 2010 at 11:52 AM, Erik Saline <span dir="ltr">&lt;<a href="mailto:erik.saline@gmail.com">erik.saline@gmail.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;">netstat -a shows open or waiting connections.  Run this to see if<br>
mysql or port 3306 is in the list.<br>
nmap will show open ports on a server<br>
<br>
Could be permissions issues.<br>
<br>
Sounds like mysql might be running already.  What does the following<br>
command show show?<br>
<br>
ps aux |grep mysql|grep -v grep<br>
<br>
If it returns anything mysql already started up<br>
<br>
<br>
Google is usually the place I look to solve crazy mysql issues.<br>
<br>
<br>
<a href="http://www.linuxforums.org/forum/servers/41668-mysql-problems-_-solved-_.html" target="_blank">http://www.linuxforums.org/forum/servers/41668-mysql-problems-_-solved-_.html</a><br>
<a href="http://www.linuxforums.org/forum/red-hat-fedora-linux/31155-error-2002-hy000-cant-connect-local-mysql-server.html" target="_blank">http://www.linuxforums.org/forum/red-hat-fedora-linux/31155-error-2002-hy000-cant-connect-local-mysql-server.html</a><br>

<div><div></div><div class="h5"><br>
<br>
On Thu, Nov 4, 2010 at 3:41 PM, Qiubo Su (David Su) &lt;<a href="mailto:qiubosu@gmail.com">qiubosu@gmail.com</a>&gt; wrote:<br>
&gt; hello victor,<br>
&gt;<br>
&gt; i did notice this and update the base memory RAM to 1G.<br>
&gt;<br>
&gt; it is ubuntu 10.0.4.<br>
&gt;<br>
&gt; On Fri, Nov 5, 2010 at 11:23 AM, Victor Kane &lt;<a href="mailto:victorkane@gmail.com">victorkane@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Check the memory assigned to the VM and make sure it is enough to start<br>
&gt;&gt; all the processes.<br>
&gt;&gt; If it turns out that this is the case, you should be able to allocate<br>
&gt;&gt; additional memory for that VM process in its configuration.<br>
&gt;&gt; What is the base system?<br>
&gt;&gt; Victor<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Nov 4, 2010 at 7:05 PM, Michael Hannon &lt;<a href="mailto:jm_hannon@yahoo.com">jm_hannon@yahoo.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Are you sure this isn&#39;t some kind of a firewall issue?  A simple, but<br>
&gt;&gt;&gt; slightly dangerous, test would be to:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;     (1) Turn off the firewall<br>
&gt;&gt;&gt;     (2) Try to make your connection<br>
&gt;&gt;&gt;     (3) Regardless of the outcome of (2), immediately turn the firewall<br>
&gt;&gt;&gt; back on.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -- Mike<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; From: Qiubo Su (David Su) &lt;<a href="mailto:qiubosu@gmail.com">qiubosu@gmail.com</a>&gt;<br>
&gt;&gt;&gt; To: <a href="mailto:support@drupal.org">support@drupal.org</a>; <a href="mailto:cjones@partialflow.com">cjones@partialflow.com</a><br>
&gt;&gt;&gt; Sent: Thu, November 4, 2010 1:59:15 PM<br>
&gt;&gt;&gt; Subject: Re: [support] urgently need help for Site off-line error<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; hello Christopher,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; i run apt-get install --reinstall mysql-server and start<br>
&gt;&gt;&gt; /etc/init.d/mysql start, but still got the same error &quot;ERROR 2002 (HY000):<br>
&gt;&gt;&gt; Can&#39;t connect to local MySQL server through socket<br>
&gt;&gt;&gt; &#39;/var/run/mysqld/mysqld.sock&#39; (2)&quot;.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; i even create /var/run/mysqld/mysqld.sock file and then restart mysql,<br>
&gt;&gt;&gt; but the mysqld.sock file disappear and get the same error.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; i got this problem when i finished install/configure drupal site and make<br>
&gt;&gt;&gt; it up and running, can browse the drupal site, loging from phpmyadmin, run<br>
&gt;&gt;&gt; /etc/init.d/mysql start without any issue, log to mysql from command line<br>
&gt;&gt;&gt; without any issue, then i restart the VM (use VM for this), then got the<br>
&gt;&gt;&gt; above problem.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, Nov 5, 2010 at 3:24 AM, Christopher M. Jones<br>
&gt;&gt;&gt; &lt;<a href="mailto:cjones@partialflow.com">cjones@partialflow.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; The log is telling you that the users table doesn&#39;t exist. I don&#39;t know<br>
&gt;&gt;&gt;&gt; how you installed mysql, or what distro you are using. If you installed<br>
&gt;&gt;&gt;&gt; using a package management tool then an administrative user should have<br>
&gt;&gt;&gt;&gt; been created. Review your installation process and make sure that all<br>
&gt;&gt;&gt;&gt; the necessary databases and tables are there, including the one<br>
&gt;&gt;&gt;&gt; mentioned in your logs. If you&#39;re using apt / dpkg and friends on a<br>
&gt;&gt;&gt;&gt; debian system, then you might try something like<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; apt-get install --reinstall mysql-server<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 11/03/2010 07:56 PM, Qiubo Su (David Su) wrote:<br>
&gt;&gt;&gt;&gt; &gt; dear drupal support,<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; &quot;/var/run/mysqld/&quot; does exists. edit */etc/mysql/my.cnf* file to have<br>
&gt;&gt;&gt;&gt; &gt; &quot;bind-address&quot; set to localhost and &quot;socket&quot; is set to<br>
&gt;&gt;&gt;&gt; &gt; /var/run/mysqld/mysqld.sock already.<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; but after run /etc/init.d/mysql start, still got below output<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; Rather than invoking init scripts through /etc/init.d, use the<br>
&gt;&gt;&gt;&gt; &gt; service(8)<br>
&gt;&gt;&gt;&gt; &gt; utility, e.g. service mysql restart<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; Since the script you are attempting to invoke has been converted to an<br>
&gt;&gt;&gt;&gt; &gt; Upstart job, you may also use the restart(8) utility, e.g. restart<br>
&gt;&gt;&gt;&gt; &gt; mysql<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; mysql start/running<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; run mysql, still got below output as well<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket<br>
&gt;&gt;&gt;&gt; &gt; &#39;/var/run/mysqld/mysqld.sock&#39; (2)<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; tail -10f /var/log/mysql/error.log, still got the same error<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; 101104 12:41:09 [Note] Plugin &#39;FEDERATED&#39; is disabled.<br>
&gt;&gt;&gt;&gt; &gt; 101104 12:41:09  InnoDB: Started; log sequence number 0 44233<br>
&gt;&gt;&gt;&gt; &gt; 101104 12:41:09 [ERROR] Fatal error: Can&#39;t open and lock privilege<br>
&gt;&gt;&gt;&gt; &gt; tables: Table &#39;mysql.user&#39; doesn&#39;t exist<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; by the way, the server use dynamic IP address and the<br>
&gt;&gt;&gt;&gt; &gt; /etc/network/interfaces is as below<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; auto lo<br>
&gt;&gt;&gt;&gt; &gt; iface lo inet loopback<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; On Thu, Nov 4, 2010 at 12:11 PM, Michel Morelli<br>
&gt;&gt;&gt;&gt; &gt; &lt;<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a><br>
&gt;&gt;&gt;&gt; &gt; &lt;mailto:<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;     Il 03/11/2010 21:35, Qiubo Su (David Su) ha scritto:<br>
&gt;&gt;&gt;&gt; &gt;&gt;     hello drupal support team,<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;     thanks for your reply.<br>
&gt;&gt;&gt;&gt; &gt;&gt;     i tried /etc/init.d/mysql start and it is ok for the database,<br>
&gt;&gt;&gt;&gt; &gt;&gt;     however, after i reboot the pc and run /etc/init.d/mysql start as<br>
&gt;&gt;&gt;&gt; &gt;&gt;     below, it doesn&#39;t work again. thanks for your help with this<br>
&gt;&gt;&gt;&gt; &gt;&gt; again.<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;     root@quicksu-desktop:/var/www/sites/all/modules#<br>
&gt;&gt;&gt;&gt; &gt;&gt; /etc/init.d/mysql<br>
&gt;&gt;&gt;&gt; &gt;&gt;     start<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;     Rather than invoking init scripts through /etc/init.d, use the<br>
&gt;&gt;&gt;&gt; &gt;&gt;     service(8)<br>
&gt;&gt;&gt;&gt; &gt;&gt;     utility, e.g. service mysql start<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;     Since the script you are attempting to invoke has been converted<br>
&gt;&gt;&gt;&gt; &gt;&gt; to an<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;     Upstart job, you may also use the start(8) utility, e.g. start<br>
&gt;&gt;&gt;&gt; &gt;&gt; mysql<br>
&gt;&gt;&gt;&gt; &gt;&gt;     start: Job is already running: mysql<br>
&gt;&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt;&gt;     root@quicksu-desktop:/var/www/sites/all/modules# mysql<br>
&gt;&gt;&gt;&gt; &gt;&gt;     ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through<br>
&gt;&gt;&gt;&gt; &gt;&gt;     socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)<br>
&gt;&gt;&gt;&gt; &gt;     Hi, try to see if &quot;/var/run/mysqld/&quot; exist.<br>
&gt;&gt;&gt;&gt; &gt;     Try to edit */etc/mysql/my.cnf* file and see if &quot;bind-address&quot; is<br>
&gt;&gt;&gt;&gt; &gt;     set to localhost and if &quot;socket&quot; is set to<br>
&gt;&gt;&gt;&gt; &gt; /var/run/mysqld/mysqld.sock.<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;     M.<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;     --<br>
&gt;&gt;&gt;&gt; &gt;     Michel&#39;ZioBudda&#39;  <a href="mailto:Morellimichel@ziobuddalabs.it">Morellimichel@ziobuddalabs.it</a><br>
&gt;&gt;&gt;&gt; &gt;  &lt;mailto:<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>&gt;<br>
&gt;&gt;&gt;&gt; &gt;     Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)<br>
&gt;&gt;&gt;&gt; &gt;     Telefono: 0200619074<br>
&gt;&gt;&gt;&gt; &gt;     Telefono Cell: +39-3939890025 --  Fax: +39-0291390660<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;     <a href="http://www.ziobudda.net" target="_blank">http://www.ziobudda.net</a>                          ICQ: 58351764<br>
&gt;&gt;&gt;&gt; &gt;     <a href="http://www.ziobuddalabs.it" target="_blank">http://www.ziobuddalabs.it</a>                       Skype: zio_budda<br>
&gt;&gt;&gt;&gt; &gt;     <a href="http://www.ziodrupal.net" target="_blank">http://www.ziodrupal.net</a><br>
&gt;&gt;&gt;&gt; &gt;  <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;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &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;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
&gt;<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br>