Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PDOException] could not find driver #118

Open
manaka02 opened this issue May 7, 2018 · 2 comments
Open

[PDOException] could not find driver #118

manaka02 opened this issue May 7, 2018 · 2 comments

Comments

@manaka02
Copy link

manaka02 commented May 7, 2018

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
Copy link

ac2-warp commented May 16, 2018

  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

Repository owner deleted a comment from Muhammadinaam Jul 21, 2021
@jmediatechnology
Copy link

I solved it by running this command:

sudo apt install php8.0-mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants