Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache/Mysql/php

Status
Not open for further replies.

Moez

Technical User
Jul 3, 2001
53
0
0
FR
Hi !!
Currently, I'm trying to use a package named Easyphp ( on Windows98 SE. But I have a problem when I want to connect on mysql. I have the next error :
error 2003 on c:/easyphp/phpmyadmin/lid.inc.php3 ligne 351. Can't connect to mysql on 'localhost'.

I have defined the hostname on c:/windows/hosts, and I don't have firewall. The deamon of mysql and apache are loaded.
Please help, I work on this problem 4 days ago, without any solution !!!
 
Try connecting to your mysql database server using 127.0.0.1 instead of localhost, this usually works
 
Wheres youre code??????

<?PHP

$link = mysql_connect(&quot;localhost&quot;,&quot;user&quot;,&quot;pass&quot;);
$use_db = mysql_select_db(database_name);

?>

NixerX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top