When i do the command php bin/console doctrine:database:create i have these errors :
In AbstractMySQLDriver.php line 126: An exception occurred in driver: could not find driver
In PDOConnection.php line 50: could not find driver
In PDOConnection.php line 46: could not find driver
config/packages/doctrine.yaml
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
.env
DATABASE_URL=mysql://root:[email protected]:3306/blogMyProject
My PHP Extensions:
php.ini extensions:
PHP 7.2.7 - MySQL 5.7.11 - Symfony 4.1.4 - I use UwAmp 3.1.0 - I'm on Windows
I don't understand where these errors come from.
php.ini
for the PHP CLI in UwAmp if so check that all the required extensions are activated in there as well as thephp.ini
used by your web server - RiggsFollyphp-mysql
is installed on your server - Precielphp.ini
files. One is used by the PHP under Apache and the other is used by PHP CLI (Command Line Interface) Look in the folder containingPHP
and see if there is aphp.ini
in that folder. That will be the one used by the CLI - RiggsFolly