Home > Software engineering >  PDO Driver not found when execute command
PDO Driver not found when execute command

Time:10-22

I am facing a problem with my database. Context: Web application referencing members, where it is possible to import members via an xls file repository, a processing is done to save it in database. I try to execute a command that is supposed to run in the background on the production environment, but on the development environment it must be executed manually, to perform the import of the files that have as states "to import". Problem during the execution, the command displays that there are driver problems with PDO, it can't find them. Any idea where the problem could come from? You will find here with the detailed errors, as well as the config.yml of the symfony 5 project

In AbstractMySQLDriver.php line 128:
                                                          
  An exception occurred in driver: could not find driver  
                                                          

In Exception.php line 18:
                         
  could not find driver  
                         

In PDOConnection.php line 40:
                         
  could not find driver  
                         
doctrine:
    dbal:
        driver: pdo_mysql
        host: '           
  • Related