|
|
PHP-MySQL On IIS 5.1 Problem - A connection problem between PHP 5 and MySQL 5 | ||
Discussion by Bananapicker with 6 Replies.
Last Update: May 29, 2006, 6:46 pm | |||
If you need any more info about my problem feel free to ask.
Thanks
Chris
Thu Apr 13, 2006 Reply New Discussion
QUOTE (Bananapicker)
Hello, I am currently testing my site on my on PC which I am using as a testing server. I am experiencing problems with my database connection between PHP 5 and MySQL 5. Does anyone know how to solve this problem?
If you need any more info about my problem feel free to ask.
Thanks
Chris
Link: view Post: 75342
Here's your problem, you're using Micro$oft's lame excuse for a server. For Windows, if you're going to run a test server, get XAMPP. It's PHP, MySQL, Apache all bundled into one happy package. I've NEVER had any problems using a pre-packaged bundle of PHP, MySQL and Apache. I've tried exactly the same thing you're doing a long time ago. I got so frustrated with it that I installed phpTriad and problem solved.
Just try XAMPP. It should work better for you.
[N]F
Thu Apr 13, 2006 Reply New Discussion
Please give more details about your system
have you installed PHP manually or with windows installer
you should edit your PHP.inf file (located in C:\windows)
find following line:
;extension=php_mysql.dll
and delete first character like below:
extension=php_mysql.dll
and then copy/paste "php_mysql.dll" from \ext directory to php directory
for example
c:\php\ext to c:\php
Sun Apr 16, 2006 Reply New Discussion
QUOTE (soleimanian)
;extension=php_mysql.dll
and delete first character like below:
extension=php_mysql.dll
and then copy/paste "php_mysql.dll" from \ext directory to php directory
for example
c:\php\ext to c:\php
Link: view Post: 75568
Tried that before, never worked for me.. dont know if there is a bug with regards to mySQL and php with windows.. anyway, i have apache2 running..
to end up everything, i downloaded the sources codes for apache. php and apache2 and compiled myself my own version in one pack.. messy but it worked.. no ftp hough, never figure out how to enable that in the compilation..
anyway, phptriad is the shortest way, much better xammp.. I am on xammp now
Tue Apr 18, 2006 Reply New Discussion
I used the following codes to connect to Mysql
<?php
$conn = mysql_connect('localhost', 'root', 'brother');
echo "successfully connected";
?>
At first I got this error message:
ERROR1251:Client does not support authentication protocol requested by server; consider upgrading MySQL client.
I then used the following syntax in mysql prompt.
Mon May 29, 2006 Reply New Discussion
i suppose the solution of soleimanian shall work. when i encountered the same problem with PHP 5, i did the same. In Linux usually installing the concerned modules does the deed.
Mon May 29, 2006 Reply New Discussion
CODE
;extension=php_mssql.dll;extension=php_mysql.dll
extension=php_mysqli.dll
CODE
<?phpphpinfo();
?>
Mon May 29, 2006 Reply New Discussion
Which Is The Best DB: PostGRE 8.1 Or MySQL 5.1 ? (5)
|
(12) Best Database Software For Dental Office Menagement?
|
Index




