Can't get PHP5 to read mySQL
Date: 11/21/07
(PHP Community) Keywords: php, mysql, sql, apache
I have PHP5.2 running under Apache 2.2 on Windows XP, and followed all directions to enable the mySQL library for PHP, but it's not working. Here's what I did:
Uncommented the extension lines for php_mysql.dll in c:php\php.ini
Enabled c:\php into the Windows PATH variable
Copied the mysql library DLL to windows/system32
Here is my phpMyAdmin config against this (Apache's port is 8080, also):
$cfg['Servers'][$i]['host'] = '127.0.0.1:8080';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'xxxxxx';
Any other pointers would be greatly appreciated.
Source: http://community.livejournal.com/php/597696.html