Could not find any MySQL database drivers. (MySQLi or PDO required.)
josip-matic opened this issue · 6 comments
Great tool, I use it a lot! On CLI I getting issue, but everything is installed.
php info:
PDO support | enabled |
---|---|
PDO drivers | mysql |
MysqlI Support | enabled |
---|---|
Client API library version | mysqlnd 7.4.15 |
Active Persistent Links | 0 |
Inactive Persistent Links | 0 |
Active Links | 0 |
Directive | Local Value | Master Value |
---|---|---|
mysqli.allow_local_infile | Off | Off |
mysqli.allow_persistent | On | On |
mysqli.default_host | no value | no value |
mysqli.default_port | 3306 | 3306 |
mysqli.default_pw | no value | no value |
mysqli.default_socket | no value | no value |
mysqli.default_user | no value | no value |
mysqli.max_links | Unlimited | Unlimited |
mysqli.max_persistent | Unlimited | Unlimited |
mysqli.reconnect | Off | Off |
mysqli.rollback_on_cached_plink | Off | Off |
Hello, do you receive any error from the tool?
Hi, here is command (real data are changed):
START;
php srdb.cli.php -h localhost -n DB -u USERDB -p "PASSWORDDB" -s "https://DOMENA_OLD" -r "http://DOMENA_NEW"
db: Could not find any MySQL database drivers. (MySQLi or PDO required.)
And we're done!
:END
Best regards
mmm this is a problem on your server, you might have mysql extension loaded on php-fpm but disabled in cli, could you check your php.ini files?
I am not server master but here is one example of our subdomain how it looks. Can you please check my php.ini https://bit.ly/30E44fj we usually have 20 or more domains at development server.
well, you should contact your server admin in this case. I can see something might be missing, hope they will fix the problem!
Problem solved, server administration said: different PHP version at Web server and on CLI, when they are the same everything work fine. Thanks!