|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP won't connect to MySQL
VERSIONS
OS - XP with SP2 Apache 2.2.2 MySQL 5.0 PHP 5.2.6 BACKGROUND I installed Apache, then MySQL, then PHP I modified Apache’s httpd.conf and added two lines - - LoadModule php5_module "c:/php/php5apache2_2.dll" AddType application/x-httpd-php .php Created php.ini in c:\windows and included the lines - - extension=php_mysqli.dll extension_dir = "c:/php/ext" I connected to MySQL via MySQL Client – so it is running php –m reveals that mysqli module is loaded phpinfo() does not have any information displayed concerning MySQL Tested connectivity between php & MySQL and received the error message: Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\... |
|
#2
|
|||
|
|||
|
Found It...!
Add the base php sub-directory (c:\php\) to the PATH statement and it worked..
|
|
#3
|
|||
|
|||
|
Quote:
hi for mysqli to work make look for php.ini include file via phpmyinfo() open it in notepad, search for mysqli remove the ; before the dl process. restart apache , and you are done hope it helps Baldaris |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP won't connect to MySQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|