0

I'm currently facing this problem in my internship . also I am new beginer at Symfony.

Problem : i could'nt create a db with "php bin/console doctrine:database:create" so i did it manually and after having the tables attribut on, with php bin/console make:migration, i am getting these errors :

 c:\symfony_projects\demo>php bin/console make:migration

In ExceptionConverter.php line 119:

  An exception occurred in the driver: could not find driver


In Exception.php line 26:

  could not find driver


In Driver.php line 28:

  could not find driver


make:migration

i'm using PHP 8 and Composer version 2.2.5

I've been working on it for 2 days and tried all the solutions I've found online including (extention -musql ), and it didn't work out.

gp_sflover
  • 3,401
  • 5
  • 36
  • 47
  • What have you tried to resolve the problem? Where are you stuck? – Nico Haase Jan 22 '22 at 15:46
  • i could'nt run "php bin/console make:migration " it says ""could not find driver "" so how can i solved this i would rly apreciate it – saad jlassi Jan 22 '22 at 15:49
  • Post your DSN, with the credentials redacted. – Chris Haas Jan 22 '22 at 15:57
  • 2
    *could not find driver* is a common error when you don't have the database extension installed, if you search the error *could not find driver symfony migrations* your find solutions. tip as a developer, google is your best friend – Lawrence Cherone Jan 22 '22 at 15:58
  • thanks everyone i solved it by my self by re-installing php and Xamp i figure it out that Laragon is a baaaad choice hahah – saad jlassi Feb 03 '22 at 11:43

0 Answers0