Reply
Hopefully Easy to fix PHP problem, newbie
Old 04-29-2007, 08:26 PM Hopefully Easy to fix PHP problem, newbie
Junior Talker

Posts: 1
Name: Michael Heenan
I installed a script onto my website at godaddy.com. I set up the MYSQl database through go daddy already and uploaded all the files to my server. Im in the beginning stage of editing and testing my site out and Im stuck on this one problem that keeps popping up.

When I go to my site and click on the button that says "myaccount" Im getting this message
Quote:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/d/c/s/dcshoeco1/html/myaccount.php on line 5

Warning: mysql_select_db(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/d/c/s/dcshoeco1/html/myaccount.php on line 6

Warning: mysql_select_db(): A link to the server could not be established in /home/content/d/c/s/dcshoeco1/html/myaccount.php on line 6
Unable to connect to MySQL
When I take a look at my file myaccount.php Lines 5 and 6 say this
Quote:
$conn=mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname) or die ("Unable to connect to MySQL");

Im 99% sure I set up my databse right and dont know what i have to do but if someone can help me Id definetly appreciate it. thanks
dcshoeco1 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-29-2007, 08:41 PM Re: Hopefully Easy to fix PHP problem, newbie
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,320
Name: Keith Marshall
Location: West Hartford, CT
You are going to have to look at your script's configuration file and find if $dbhost, $dbuser, and $dbpass is equal to the MySQL connection data that your GoDaddy account gave to you when you set up the new db.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 10:18 AM Re: Hopefully Easy to fix PHP problem, newbie
Experienced Talker

Posts: 41
Name: nabil
What script are you talking about? It may help
__________________
Selling Virtual CC
nabil_kadimi is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 12:13 PM Re: Hopefully Easy to fix PHP problem, newbie
camp185's Avatar
Super Talker

Latest Blog Post:
Printer Friendly
Posts: 118
Don't know what script you used, but try looking for a config file or admin file.
__________________
Subscribe to my full feed RSS for Usability Tips and Site Reviews
Get My Basic Usability & Design Analysis
camp185 is offline
Reply With Quote
View Public Profile Visit camp185's homepage!
 
Reply     « Reply to Hopefully Easy to fix PHP problem, newbie
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12185 seconds with 12 queries