Wade Smart wrote:
> 
> 
> 20080729 0952 GMT-6
> 
> Im getting this error when connection to the db:
> Warning: mysql_connect() [function.mysql-connect]: Can't connect to 
> local MySQL
> server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in
> /home/content/m/i/c/mp/html/deer_product.php on line 52
> 
> the line referenced is:
> if($dbc = mysql_connect('Godaddy db url', 'user', 'pass')){
> if(mysql_select_db('whitetails')){
> 
> I went back and verified the Godaddy db url, checked the user name and 
> password
> but when I called GoDaddy they said it was absolutly a script problem.
> 
> Would anyone help me troubleshoot this?
> 
> wade
> 
Are you connecting from your hosting account? I believe GoDaddy uses ip 
filtering on their db servers.

If you are trying to connect from a non GoDaddy server there is a 
setting somewhere to add another host to have access in their control 
panel... I haven't been in GoDaddy in years but that is what I had to do.

Hope this helps...

Reply via email to