Answer the question
In order to leave comments, you need to log in
How to install php_pdo_mysql?
Enabled in php.ini
extension=php_pdo_mysql.so
Now I get an error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_pdo_mysql.so' - /usr/lib/php/20131226/php_pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
apt-get install pdo-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pdo-mysql
Answer the question
In order to leave comments, you need to log in
apt-install php-pdo-mysql
well
apt search php | grep pdo | grep mysql
, or look at what packages are there.
PDO support is in the php-mysql module itself, so it is done through the commands:
sudo apt-get install php-mysql
sudo phpenmod pdo_mysql
sudo service apache2 restart
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question