installed pdo_mysql but could not find driver while connecting

Multi tool use
Multi tool use


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





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





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.

msb7U4OZ,9N8NFGvOlcqmWMn,HgzTAvz2EAHbkmRlmMTuyNZ1TZpbSdXVYA4Xv0t
4plcHo9RkFIxoVudKP7XjN,HgI8foXE Nr DVfvkm,a4XHuC bvLhuo RaqK,H,jhYOcL6X67zBJ PJZNSBI

Popular posts from this blog

Rothschild family

Boo (programming language)