Getting mySQL to connect in PHP (.ini related?) - 09-02-2004 , 12:09 PM
I'm using WinXP Pro, with Apache 1.3? and PHP5.
Then today I installed mySQL 2.0.49.
Technically it works. I can use the command line to create tables and
insert data, I can use WinmySQLAdmin to view processes, etc.
But when I make a test script in PHP, nothing happens.
$dbh = mysql_connect("localhost", "username", "password") or die("I
cannot connect to the database because: " . mysql_error());
Nothing happens. I don't even get the error message. So changing
"localhost" to the PC name and the IP address of course didn't work,
because PHP isn't seeming to be talking to mySQL.
I opened up my php.ini and uncommented the one and only line with
mysql.dll in it.
Is there something in Apache's httpd.conf, that might need to be
changed? I couldn't find any commented out mysql lines.
Thanks for any help!
Re: Getting mySQL to connect in PHP (.ini related?) - 09-10-2004 , 10:16 AM
Copy all dlls (espsecially libmysql.dll) to your windows map and he will
read the php_mysql.dll extension and connect...
"LRW" <deja (AT) celticbear (DOT) com> schreef in bericht
news:3a1d1813.0409020909.3bb201bf (AT) posting (DOT) google.com...