Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Site is down.No connection to database server.


Recommended Posts

My site is down.

This is the message:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (13) in /home2/smokesup/public_html/www/catalog/includes/functions/database.php on line 19

Unable to connect to database server!


Anyone can help? :wink:

Thank you

Link to comment
Share on other sites

Is this a new problem?

New install?

When was the last ime this worked?

Do you have a recent "known to be good" DB backup?

Do you have cpanel? if so see if you access the db.

Link to comment
Share on other sites

This is a new problem.Before it was script problem. After site was working for 1-2 days. Now,today I have this problem.2 month ago I did not have any problem with my site.But I had problem with my host.I changed a hosting company 2 month ago.Now I am having all the time small problems with my site.

I have cpanel6.I have DB backup,I do not know about "known to be good" :wink:

Link to comment
Share on other sites

can you access the db in cpanel?


if so try a "repair" in phpmyadmin.


when was the last time you backed up the db in admin?


you should be doing this after every succesful change.


This is what i mean by known to be good.


Then it is a simple matter to restore the good db if something has gone wrong.


If you don't do this...well, you are just hurting yourself. Only takes a few moments and can save a big headach.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...