How to know if MySQLnd is the active driver?

Warning! This method is unreliable and does not work since PHP 8.1 If you are accessing via mysqli, this should do the trick: <?php $mysqlnd = function_exists(‘mysqli_fetch_all’); if ($mysqlnd) { echo ‘mysqlnd enabled!’; } To detect if its the active PDO driver, create your MySQL PDO object then: if (strpos($pdo->getAttribute(PDO::ATTR_CLIENT_VERSION), ‘mysqlnd’) !== false) { echo … Read more

How to enable mysqlnd for php?

The ./configure command is part of the compilation process from source code. You can either compile from source or install via package manager. I guess in your case the package manager is preferable. As the package manager complains, you can’t have both php-mysql and php-mysqlnd installed. So you can yum remove php-mysql before yum install … Read more