
12-07-2007, 10:50 PM
|
|
|
get this error message
alright so i uploaded my script and i have a mysql database setup.. but when i open my website i get this:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/testhyip.100webspace.net/inc/config.inc.php on line 2073
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
So I go to that file and find line 2073 and it says this:
if (!($dbconn = mysql_connect ($settings['hostname'], $settings['db_login'], $settings['db_pass'])))
What do I do to make it work.
|
|
Re: get this error message |
|

12-07-2007, 11:52 PM
|
 |
TeamEarners.com Member
|
|
Join Date: Jan 2006
Posts: 1,711
|
|
Re: get this error message
Your host might have a problem with MySQL (eg. daemon not running). Give them a shout.
|
|
Re: get this error message |
|

12-08-2007, 11:08 AM
|
 |
VIP Investor
|
|
Join Date: Aug 2005
Location: Virtual Reality
Posts: 1,301
|
|
Re: get this error message
this error means you are trying to send the query to the database without even establishing a connection at first place .
|
|
Re: get this error message |
|

12-08-2007, 02:56 PM
|
 |
Amateur Investor
|
|
Join Date: Nov 2007
Posts: 98
|
|
Re: get this error message
Exactly right.
There is no problem in your script. The script can't connect to the MySQL server. Perhaps you have the wrong server in your settings, but probably not because then it wouldn't give the error it's giving you now.
Unless you're on a dedicated server, you should contact your host and make sure they get their MySQL up and running. If you're on your own dedicated server, you should be able to start up MySQL yourself.
|
|
Re: get this error message |
|

12-08-2007, 04:00 PM
|
|
|
Re: get this error message
how do i establish a connection to the script
|
|
Re: get this error message |
|

12-08-2007, 04:40 PM
|
 |
Amateur Investor
|
|
Join Date: Nov 2007
Posts: 98
|
|
Re: get this error message
There is no such thing as a "connection to the script". Your script is trying to estabilish a connection to the MySQL server, which is down - assuming you have the settings correct.
I'm guessing you are not in control of starting and shutting down the MySQL server yourself, so you should just email your webhost and state the problem.
There is nothing you can do if the MySQL server is down and you can't fire it up.
|
|
Re: get this error message |
|

12-08-2007, 06:40 PM
|
 |
Investor
|
|
Join Date: Aug 2007
Posts: 236
|
|
Re: get this error message
Testing on a free host is not the ultimate solution to achieve all features.
That’s all, most free webhosts do n’t provide such updated & broad configurations. 
__________________
Goodness is the only investment that never fails.
|
|
Re: get this error message |
|

12-09-2007, 06:43 AM
|
 |
Banned
|
|
Join Date: Sep 2007
Posts: 418
Warning Level : 5
Warning Bans : 1
|
|
Re: get this error message
this not your wrong, their must some error with the mysql server.
|
|
Re: get this error message |
|

12-09-2007, 08:25 AM
|
 |
VIP Investor
|
|
Join Date: Aug 2005
Location: Virtual Reality
Posts: 1,301
|
|
Re: get this error message
post the script file here or attach it .
|
|
Re: get this error message |
|

12-10-2007, 05:44 AM
|
|
Investor
|
|
Join Date: Jul 2007
Posts: 381
|
|
Re: get this error message
Quote:
|
Originally Posted by Ays
Testing on a free host is not the ultimate solution to achieve all features.
That’s all, most free webhosts don’t provide such updated & broad configurations. 
|
Speak for yourself. I'm using freezoka.com for testing my scripts.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
TALKGOLD SIDEBAR ADS ADVERTISE HERE. Must read: Advertising Terms & Disclaimer
|
PUT YOUR 120X120 AD HERE FOR ONLY $410/WEEK! Click Here for details. |
Cost of Ad - $400 |
Cost of Ad - $400 |
Cost of Ad - $390 |
Cost of Ad - $390 |
Cost of Ad - $390 |
Cost of Ad - $350 |
Cost of Ad - $350 |
Cost of Ad - $310 |
Cost of Ad - $310 |
Cost of Ad - $300 |
Cost of Ad - $145 |
Cost of Ad - $135/week |
Cost of Ad - $135/week |
Cost of Ad - $125 |
Cost of Ad - $125 |
YOUR AD HERE
PUT YOUR NON-ROTATING AD HERE NOW! ONLY $125/Week |
|
|
|