None of the supported php extensions (mysqli, mysql, pdo_mysql) are available

whenever i login to the adminer, it always show:

    No Extension
             None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are available.

I just installed this a while ago using the source package and i put it on my DirectoryRoot.

asked Mar 22, 2015 at 15:50

None of the supported php extensions (mysqli, mysql, pdo_mysql) are available

Now you need to make

sudo apt-get install php-mysql

Since on recent release you need to install the new php7 version

And finally sudo service apache2 restart

answered Feb 1, 2017 at 7:11

David FaureDavid Faure

2903 silver badges6 bronze badges

It might be the case that mysql is not configured with php. You can try and install it by the command

sudo apt-get install php5-mysql

Refresh the browser. Hope it helps.

A J

10.9k16 gold badges41 silver badges59 bronze badges

answered Mar 23, 2015 at 7:40

1

  1. Locate your php.ini file.
  2. Find the following extensions and remove their comments (i.e. remove the semi-colon):

    ;themextension=pdo_pgsql
    ;extension=pgsql
    
  3. Restart your Apache server.

Melebius

10.7k8 gold badges46 silver badges72 bronze badges

answered Aug 30, 2018 at 8:14

None of the supported php extensions (mysqli, mysql, pdo_mysql) are available

Not the answer you're looking for? Browse other questions tagged apache2 php database or ask your own question.

5.2.17, apache 2.2.5 and MySQL 5.6.22 and adminer 4.1.0-mysql

My configuration

**[SYSTEM variables]**

PHPRC = C:\PHP

PATH = ....;C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\;C:\PHP;C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.3 & MySQL Utilities 1.5.3 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.3 & MySQL Utilities 1.5.3 1.5\Doctrine extensions for PHP\

**[SYSTEM variables]**


**[PHP.ini]**
extension_dir = "C:\PHP\ext"
extension=php_mysql.dll
**[PHP.ini]**

**[httpd.conf]**
LoadModule php5_module "C:/PHP/php5apache2_2.dll"

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir "C:\PHP\"
**[httpd.conf]**

but when I go to adminer I authenticate I get this message in Adminer

Error None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are available. Error

but I ve tried everything but I was not able to locate error. It s weird. Is somebody here who have similar problem and figure out.

libmysql.dll is in system32 folder I really dont know what is the problem here

When I query Mysql it works so its very weird behavior.

Thanks Jakub

Since I upgraded from 5.0 version to 5.5 I am getting the following error on my PHP page.

None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are available.


When I tried to install php-mysql package, I got the following error.

# yum install php-mysql --skip-broken

Packages skipped because of dependency problems:
    mysql-5.0.77-4.el5_4.2.x86_64 from base
    php-mysql-5.1.6-27.el5.x86_64 from base

This was working as expected when I had 5.0 version of MySQL. How do I upgrade the php extension?

None of the supported php extensions (mysqli, mysql, pdo_mysql) are available

slhck

214k65 gold badges579 silver badges570 bronze badges

asked Aug 16, 2011 at 5:47

0

After installing mysql shared compact library, this was working as expected

wget ftp://ftp.isu.edu.tw/pub/Unix/Database/MySQL/Downloads/MySQL-5.5/MySQL-shared-compat-5.5.24-1.el6.x86_64.rpm
rpm -ihv MySQL-shared-compat-5.5.24-1.el6.x86_64.rpm
yum install php-mysql --skip-broken

answered Jul 29, 2012 at 13:30

shantanuoshantanuo

2,6133 gold badges20 silver badges20 bronze badges

Not the answer you're looking for? Browse other questions tagged php mysql or ask your own question.