OBJECTIVE:
I am trying to simply create a database using doctrine in Symfony. I have my project installed in xampp>htdocs
I HAVE TRIED:
I have the apache server running and can view my site locally no problem.
When I follow the instructions in the documentation, I am able to successfully run these two commands:
composer require symfony/orm-pack
composer require --dev symfony/maker-bundle
I then go to my .env file and change this line:
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
to be this line:
DATABASE_URL=mysql://root:pass@127.0.0.1:3306/symphart
-I have configured the root user to use the password "pass" and haved logged in to phpmyadmin -successfully.
-php.ini-production and php.ini-development both have pdo_mysql enabled
THE PROBLEM:
When I run the command:
php bin/console doctrine:database:create
I get the error:
C:\xampp\htdocs\symphart>php bin/console doctrine:database:create
[error] Error thrown while running command "doctrine:database:create". Message: "An exception occurred in driver: could not find driver"
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 37:
could not find driver
