Re: Problem with PHP5.0.4 and MySQL 4.1.12.a
| From: | Michael W. | Date: | Wed, 20 Jul 2005 14:57:10 +0000 |
| Subject: | Re: Problem with PHP5.0.4 and MySQL 4.1.12.a | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-16506@lists.php.net to get a copy of this message | ||
Do you have anything in php.ini to load the php_mysql.dll extension? For information about doing that, see http://www.php.net/manual/en/install.windows.extensions.php
Manfred.Fecke@hella.com wrote:
Hi Folks I got a Problem to get MySql started under PHP. My configuration is: OS: XP advanced server Webserver: IIS PHP Version: 5.0.4 MySQL Version: 4.1.12a PHP runs as server module Under myadminsql I got the following error message: [1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration". To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed. Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar. If I use the following php script to test the connection to mysql. The script hung at: $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Cannot connect to database"); <?PHP error_reporting(1+2+4+8); /* Datenbankserver - In der Regel die IP */ $db_server = "localhost"; /* Datenbankname */ $db_name = "mysql"; /* Datenbankuser */ $db_user = "root"; /* Datenbankpasswort */ $db_passwort = "service"; /* Erstellt Connect zu Datenbank her */ $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die ("Cannot connect to database"); if($db) echo "Verbindung zur Datenbank wurde hergestellt"; echo "<br>"; /* mysql_query("TRUNCATE TABLE 'bb2_shoutbox'"); /* Schliessen der Datenbank-Verbindung */ $db_close = @MYSQL_CLOSE($db); if($db_close) echo "Verbindung zur Datenbank geschlossen"; else echo "Konnte Verbindung zur Datenbank nicht schliessen"; ?>Best regards and thanks Manfred Fecke