Gilad Adar
Gilad Adar

Reputation: 193

MYSQL - libmysql.dll error

I have just installed MySQL on windows server 2003 32-bit. I have PHP 5.2.6.

When doing in cmd: php -m to get the modules I have this error:

"PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'libmySQL.dll"
in Unknown on line 0"

the dll in located in:

"C:\Program Files\PHP\ext\libmySQL"

My php.ini looks like this:

extension=libmySQL.dll

I tried to download again the DLL and restart the server, still the same error. I have this DLL in system32 as well, can you please help me?

Upvotes: 0

Views: 1040

Answers (1)

Álvaro González
Álvaro González

Reputation: 146620

All builtin PHP extension files start with php_..., not lib. Particularly, the legacy deprecated MySQL extension is loaded this way:

extension=php_mysql.dll

I'd say you're attempting to load something that's not a PHP extension at all (it looks like the MySQL library used by MySQL clients like Workbench or HeidiSQL).

Upvotes: 3

Related Questions