jonseg / crud-admin-generator

An open source tool to generate a complete backend from a MySql database.
http://crud-admin-generator.com/
MIT License
1.43k stars 441 forks source link

[PDOException] could not find driver #118

Open manaka02 opened 6 years ago

manaka02 commented 6 years ago

Hi guys, I always have this error when I run the command php console generate:admin

I check my php.ini and it's already enabled (I try to used pdo_mysql as driver)

Thanks

 [Doctrine\DBAL\Exception\DriverException]
  An exception occured in driver: could not find driver

  [Doctrine\DBAL\Driver\PDOException]
  could not find driver

  [PDOException]
  could not find driver

generate:admin
ac2-warp commented 6 years ago

1) Open your php.ini file and remove the semi-colon in front of extension=pdo_mysql and extension_dir = "ext" (for Windows) or extension_dir = "./" 2) Ensure that the pdo_mysql.dll is in the php/ext folder

Then try again

jmediatechnology commented 2 years ago

I solved it by running this command:

sudo apt install php8.0-mysql