Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Dunny), 32 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 10/01/06
Posts: 75
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#219662 - 11/26/08 05:36 PM SQL Problems Please Help....
GriffJ Offline
stranger
Registered: 09/18/08
Posts: 12
Loc: Fort McCoy WI
Just wanted to get some advice from a couple of gurus before I go off half cocked and get irate with my host provider...
Cannot get to my board receive the following 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!

Just got this board working last month thanks to Rick with an upgrade/new install of 7.3?

Anyways I am by no means an expert but looks to me like this is on the server end??? Just wanted to check and see before I get the email from webhost provider tech support that proclaims it is a third party software problem..

http://www.challengeacademy.org/forum/ubbthreads.php

Thanks in advance to any advice given..

JT
_________________________
JT
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#219663 - 11/26/08 05:42 PM Re: SQL Problems Please Help.... [Re: GriffJ]
Ruben Offline

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Are you able to connect to the tables using what your host control panel has. Such as MyPHPAdmin?
If so ftp to the site. Then goto config.inc.php in the includes folder and double check your database settings. It should be the first couple of lines in the file.
_________________________
Blue Man Group
Top
#219668 - 11/26/08 06:37 PM Re: SQL Problems Please Help.... [Re: Ruben]
GriffJ Offline
stranger
Registered: 09/18/08
Posts: 12
Loc: Fort McCoy WI
I found config.php file what should I be looking for ????
_________________________
JT
Top
#219669 - 11/26/08 06:46 PM Re: SQL Problems Please Help.... [Re: GriffJ]
Ruben Offline

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Depending on the version the top few lines should have the path and MYsql database settings:
Make sure they are correct
DATABASE_SERVER' => 'path to Mysql server',
'DATABASE_USER' => 'user Id',
'DATABASE_PASSWORD' => 'database password',
'DATABASE_NAME' => 'database name',
'TABLE_PREFIX' => 'usually ubbt_ if you used default',
_________________________
Blue Man Group
Top
#219670 - 11/26/08 06:55 PM Re: SQL Problems Please Help.... [Re: Ruben]
GriffJ Offline
stranger
Registered: 09/18/08
Posts: 12
Loc: Fort McCoy WI
Ok I found the file and it is totally blank..looks like it was last modified this am around the same time I was initially checking the board... If I copy what the config.php file has in it is that the same???

JT
_________________________
JT
Top
#219671 - 11/26/08 07:07 PM Re: SQL Problems Please Help.... [Re: GriffJ]
Ruben Offline

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Well there is a lot more to the file than just the first few lines. Something must have happened to it. If you have a current backup I would restore it. If not then you need to double check at least a few more lines. Then you can go into your control panel and check the rest of it.
A few lines down you will find
'FULL_URL' => 'Full URL to Main Directory',
'BASE_URL' => 'Relative URL to Main Directory',
'FULL_PATH' => 'Absolute PATH to Main Directory',
_________________________
Blue Man Group
Top
#219672 - 11/26/08 07:15 PM Re: SQL Problems Please Help.... [Re: Ruben]
GriffJ Offline
stranger
Registered: 09/18/08
Posts: 12
Loc: Fort McCoy WI
Thanks Ruben,

The file is totally empty 0 kb...I will try the back up...
JT
_________________________
JT
Top
#219673 - 11/26/08 07:19 PM Re: SQL Problems Please Help.... [Re: GriffJ]
Ruben Offline

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Okay that file is usually fairly static unless you have changed settings since the last backup. So even if the file is months old as long as the paths are correct the control panel will open and you will need to update what has changed since then, The real important stuff is the paths and mysql table stuff I posted. Which can be corrected via notepad.
Once you do that you may still need to save things in the control panel such as the paths and URLs section to update the table


Edited by Ruben Rocha (11/26/08 07:22 PM)
_________________________
Blue Man Group
Top
#219675 - 11/26/08 07:59 PM Re: SQL Problems Please Help.... [Re: Ruben]
Ruben Offline

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Looks like you are up again. I would for sure make a full backup after you are sure all is okay again.
_________________________
Blue Man Group
Top
#219676 - 11/26/08 08:03 PM Re: SQL Problems Please Help.... [Re: Ruben]
GriffJ Offline
stranger
Registered: 09/18/08
Posts: 12
Loc: Fort McCoy WI
Ruben you're a life saver

I updated the file using a back up and then went into cp and saved all the primary settings..

Now for the big question.. how does this type of thing happen???Is it a bug? something I may have set wrong???
I did not make any changes to any of the files i first noticed this morning that my page did not have "who's on line or any pictures that it usally has on it but the forms were there..I assumed slow down load times then as I purused the forms poof the sql problem...any ideas???


Thanks again for the assistance..
JT
_________________________
JT
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image