March 18th, 2000, 08:56 AM
Hopefully someone can help !
Have sucessfully set up php on 2 machines
1) Win98 / Omnihttpd server
Installed on both machines mySql and then the problem ;
Call to unsupported or undefined function mysql_connect
I am also getting this error when I try to connect to my mySQL db. Both php, mySQL and my web server (Omni] are working separately but php won't talk to mySQL (I've started the mySQL deamon too).
Installed, got PHP running locally, try mySQL and from the command prompt
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
Or from IE php page
Data from the table
Warning: MySQL Connection Failed: Can't connect to MySQL server on localhost (10061) in C:Inetpubwwwroothtdocsdatabaseindex.php on line 14
My Message - Problem connecting to Database
Any help appreciated cos I'm slowly banging my head against the wall !
March 21st, 2000, 07:14 AM
Are you sure you have uncommented the mysql line in php3.ini?
extension=php3_mysql.dll <--- THIS ONE!
March 21st, 2000, 10:25 AM
March 21st, 2000, 11:04 AM
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Soup:
yep done that ![/quote]
It's not the PHP connection that is failing; MySQL itself is not up and running yet.
It's very easy, at the commandprompt within your mysql/bin directory, type:
(i believe it's as easy as that, if you still experience problems, i can check at my home-pc, for possible further parameters)
<WARNING: signature has NULL-value>