MySQL Problem

Announcements about the database, website, and plugins.
szsori
Site Admin
Posts: 1911
Joined: Fri Nov 03, 2006 5:23 pm

MySQL Problem

Postby szsori » Sat May 22, 2010 9:05 pm

I'm noticing a MySQL issue on the server. Everyone getting the following message or just me?
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/thetvdb/www/include.php on line 14
Could not connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

hikaricore
Gaius Baltar
Posts: 5970
Joined: Tue Apr 28, 2009 11:28 am

Re: MySQL Problem

Postby hikaricore » Sat May 22, 2010 9:15 pm

viewtopic.php?f=4&t=3686

I believe it was also mentioned in the moderators forum a couple times.
This only seems to happen on the main page, the rest of the site works as expected.

szsori
Site Admin
Posts: 1911
Joined: Fri Nov 03, 2006 5:23 pm

Re: MySQL Problem

Postby szsori » Sat May 22, 2010 10:57 pm

Troubleshooting with Matt figured it out. The site was caching the error, so I have to change the code a bit to return an actual HTTP error code.

crzykidd
Site Admin
Posts: 418
Joined: Sat Feb 16, 2008 4:48 pm

Re: MySQL Problem

Postby crzykidd » Mon May 24, 2010 11:58 am

It is weird.. I have tried reloading the main page many times over the last 2 weeks and have not seen this error once. ;(
thetvdb.com Site Admin

Coco
Site Admin
Posts: 2475
Joined: Tue Mar 13, 2007 10:16 pm
Location: Canada

Re: MySQL Problem

Postby Coco » Mon May 24, 2010 1:29 pm

I've seen it plenty. You just don't use the site enough. :P
Please don't PM me. Post in the forums instead unless there is a very good reason for a PM or I won't respond.