I installed everything separately (Apache, PHP, MySQL and phpMyAdmin) and do not use a compilation, everything works fine till now except phpMyAdmin.
The problem I am experiencing is, that the error message states that the "MySQL extension is missing", as soon as I try to call up:
localhost/phpmyadmin/index.php
And when I call up
localhost/phpmyadmin/setup/index.php
I have two messages where I do not know if it is supposed to be like that:
Bzip2 compression and decompression requires functions (bzopen, bzcompress) which are unavailable on this system.
and:
Zip decompression requires functions (zip_open) which are unavailable on this system.
Any suggestions?
I just add
This will ask to overwrite mysql.so from "php5-mysql".
This work for me.
In my case I had to install the extension:
and then restart apache:
That solved the problem.
Your installation is missing some php modules, there should be a list of required modules in the phpmyadmin readme. If you recently enabled the modules, try restarting the apache service / daemon.
Edit: As it seems, there is no single "enable these modules" in the docs, so enable either
mysql
ormysqli
in your php.ini (you might need to install it first).The two messages are not important if you do not intend to upload or download compressed file within phpMyAdmin. If you do, enable the
zlib
and / orbz2
modules.I had a similar issue, but it didn't help to add extension=mysql.so in my php.ini. It turned out that the mysql.so file was not in my extension folder nor anywhere else on my machine. Solved this by downloading the php source and building the extension manually and then copying it into the extension folder.
Some linux distributions have a php_mysql and php_mysqli package to install.
You need to put the full path in the php ini when loading the mysql dll, i.e :-
Then you don't need to move them to the windows folder.