It is currently Fri Mar 29, 2024 6:22 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: mysql can't connect
PostPosted: Mon May 09, 2005 12:44 am 
Noobie
Noobie

Joined: Mon May 09, 2005 12:32 am
Posts: 9
$Username = "ibigpapa_web";
$Password = "******t";
$DB = "ibigpapa_web";
$databasehost = "madpage.com";
$databaseport = "3306";
mysql_connect($User,$Password,$databasehost,$databaseport);
@mysql_select_db($DB) or die("unable to select");

this is the error i get
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
on line 54
which is msql_connect line. am i doing something wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 09, 2005 1:39 am 
mysql_connect($User,$Password,$databasehost,$databaseport);

should be:

mysql_connect($databasehost,$Username,$Password);


Top
  
 
 Post subject: thanks
PostPosted: Wed May 11, 2005 2:47 am 
Noobie
Noobie

Joined: Mon May 09, 2005 12:32 am
Posts: 9
it worked thank you alot


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 11, 2005 10:54 am 
no problem


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
100WebSpace © 2011