How to check if PDO_MYSQL or MYSQLI Extension are installed?


#1

You can run the following command via root:

php -m | grep -i mysql

You will get an output like below:

[[email protected] ~]# php -m | grep -i mysql
mysql
mysqli
pdo_mysql

If you do not have root access you can create a php file with the following code:

<?php phpinfo(); ?>

Then just search the page and MySQLI should be there if it’s installed.