note 99763 added to mysql.installation

From: Date: Fri, 03 Sep 2010 16:13:25 +0000
Subject: note 99763 added to mysql.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-172306@lists.php.net to get a copy of this message
i've experienced a similar (if not the same) problem. to enable the mysql_... and mysqli_... funtionality, i opened the php.ini file to uncomment the following lines: ;extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_pdo_mysql.dll but phpinfo() still stated that no mysql extensions were loaded. i tried the fixes and suggestions above with no success. so i invoked the windows shell and typed ("Path" environment variable set to the PHP & MySQL directories): php.exe -m this returned the following error: "PHP Startup: Unable to load dynamic library 'C:\php5\php_mysql.dll' - Module not found." this told me that PHP didn't recognize what i thought was the extensions directory. it searched all other places first (sys-dir, workin'-dir, the MySQL "bin" dir because of the "Path" variable set, and even a curious directory "C:\php5" that doesn't even exist on my mashine) but not the expected "ext" directory. so the fix was to go to "php.ini" again and uncomment the following line: ;extension_dir="ext" this fixed it for me. so if module loading is done improperly, first of all check the "Path" environment variable and the "php.ini" file - especially the "extension_dir" config value - and check if all values are set to their correct values. hope this helps any1. ---------------------------------------- OS: Win7 Ultimate x86 Apache v2.2.16 PHP v5.3.3 MySQL v5.1.50 ---- Server IP: 212.124.37.9 Probable Submitter: 217.92.108.63 ---- Manual Page -- http://www.php.net/manual/en/mysql.installation.php Edit -- https://master.php.net/note/edit/99763 Del: integrated -- https://master.php.net/note/delete/99763/integrated Del: useless -- https://master.php.net/note/delete/99763/useless Del: bad code -- https://master.php.net/note/delete/99763/bad+code Del: spam -- https://master.php.net/note/delete/99763/spam Del: non-english -- https://master.php.net/note/delete/99763/non-english Del: in docs -- https://master.php.net/note/delete/99763/in+docs Del: other reasons-- https://master.php.net/note/delete/99763 Reject -- https://master.php.net/note/reject/99763 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172306) next »