Not able to enable pdo_mysql extension or not able to install
10,775
Solution 1
sudo apt-get install php-pdo-mysql
Solution 2
Thanks for your help, i have resolved issue.
I have executed below commands in terminal.
sudo a2dismod php7.0
sudo a2enmod php5.6
sudo apt-get install php5.6-mysql
sudo service apache2 restart
Thanks,
Related videos on Youtube
Comments
-
shyam over 1 year
I am using Ubuntu 16.04.3 LTS , Using PHP version 5.6 i have required 5.6 version only not required php latest version
I tried to install or tried to enable but not working:
sudo apt-get install php5-gd php5-mysql E: Package 'php5-mysql' has no installation candidate
I am getting below error.
pdo_mysql extension is not installed
-
George Udosen over 6 yearsWhich is it
php5-mysql
orpdo_mysql
?
-
-
shyam over 6 yearsAlready installed and done downgrade sudo a2dismod php7.0 sudo a2enmod php5.6 sudo service apache2 restart
-
Alex Austin over 6 yearsdid you do apt update?
-
shyam over 6 yearsHi Vichu, Not working tried change the cd /etc/php/5.6/apache2 nano php.ini but not working
-
Alex Austin over 6 yearswhat is the output of php -m?
-
shyam over 6 yearsAlex, Here is output calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext hash iconv json libxml mbstring mcrypt mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql Phar posix readline Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zlib
-
Alex Austin over 6 yearshave you tried apt-get install pdo-mysql?
-
damadam over 4 yearsCan you provide more explanation about what is
php-pdo-mysql
package? for example, what contains that package, ...