Previous Thread
Next Thread
Print Thread
Hop To
#228235 08/09/2009 2:47 PM
Joined: Jul 2008
Posts: 10
L
stranger
stranger
L Offline
Joined: Jul 2008
Posts: 10
My board has crashed (I didn't do anything!), and is giving this error:

Script:
Line#:
SQL Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Please verify that your MySQL server is running
SQL Error #: 2002
Query: Unable to connect to the database!


Is it correct to assume that this is caused on the host's end, like their server is down? Thank you.

Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
It looks that way. It is telling you that it can not connect to the database for one reason or another.

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
This can also happen if your config.inc.php file has been corrupted. This file holds all of your settings including your connection to mysql.
HERE is a post from another user that reported the exact same error.

So I would double check the file in question.

BTW, This is the same issue as JAISP stated. "No connection to MYSQL" If this file is corrupted the board does know how to connect to the database.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #228240 08/09/2009 5:23 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Also it would be helpful if you added your board url to your profile. So people like me can take a quick peek at the problem.
Sometimes it helps sometimes it doesn't.
But it does save time posting back and forth asking for the url.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #228242 08/09/2009 5:59 PM
Joined: Jul 2008
Posts: 10
L
stranger
stranger
L Offline
Joined: Jul 2008
Posts: 10
Thank you very much for your replies. Here's the error URL: http://www.wheelchairjunkie.com/forums/ubbthreads.php I am able to log into phpMyAdmin, but I can't find a config.inc.php file. It's odd because the board has run flawless for a year, and suddenly it's just showing this error. Thanks again.

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Well I can't say for version 6 but for version 7 the file is in includes/config.inc.php.
Looking at the last 6.x download it seems to be the same.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #228244 08/09/2009 6:10 PM
Joined: Jul 2008
Posts: 10
L
stranger
stranger
L Offline
Joined: Jul 2008
Posts: 10
Ruben, if I can access the phpMyAdmin control panel, does that mean it's not the server that's the issue, but my board files? Thanks.

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
I would probably say yes. If you did read my post link. It could be your server over wrote the config.inc.php file due to out of disk space. A big clue is the file is 0 bytes.
See if you can find the config file. and restore it even if it is out of date the paths.login,password should be correct.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #228247 08/09/2009 6:58 PM
Joined: Jul 2008
Posts: 10
L
stranger
stranger
L Offline
Joined: Jul 2008
Posts: 10
Ruben, my config.inc.php file is 0. Unfortunately, I don't have access to the original files, and my membership expired last month... so I guess I have to buy an upgrade, and go from there. Thanks.

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Well,
You may have other options.If you have a old backup you can use it like I said before. You just will need to update it after uploading.
Another option is if you have the original zip file, set up a test board and let it create a new config file and copy it over to the live board.

Or somebody may have a default config file for you to use. But you need to let us know what the version is. Also Rick could rebuild your config file. If you open a support ticket.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #228264 08/10/2009 6:43 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Looks like you are up and running. I assume Rick restored your config file?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #235565 03/12/2010 4:18 PM
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Thank YOU!!!

I just had this happen and I found this thread, and I copied over the config file. Everything is back again!!

Thank you so much!! smile


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
All I can say is "BEWARE"
Some problem caused the file to be corrupted.
But glad to see you got it resolved for now.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #235921 03/29/2010 11:34 PM
Joined: Jan 2008
Posts: 514
addict
addict
Joined: Jan 2008
Posts: 514
The only time I have ever had an issue with the config file was when I was editing it locally, and I forgot it was opened when I switched between computers and accessed it via my CP and updated it there as well.... when I switched back to my forums (locally) I saved changes and voila everything was wiped and I had to use a backup. Maybe something like this happened, where there were two instances of the config file being written and it burped out a WTH are you doing to me kind of thing.

tongue

Dunny


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 834 guests, and 246 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)