installed pdo_mysql but could not find driver while connecting
installed pdo_mysql but could not find driver while connecting
Connecting to MySQL Database through PDO is showing could not find driver but output of php -i | grep PDO is:
PDO
PDO supported => enabled
PDO drivers => mysql
PDO Driver for MySQL => enabled
and ouput of php -m contains :
PDO
pdo_mysql
Nico's probably right. Could be worthwhile to try
service php-fpm(7.x)? restart
or service apache2 restart
.– Cameron Hurd
Jul 1 at 12:43
service php-fpm(7.x)? restart
service apache2 restart
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Does your script which shows "could not find driver" also run with the shell version of PHP or through a server? The second option might use another ini file
– Nico Haase
Jul 1 at 11:02