Symfony 5 - An exception occurred in driver: could not find driver
If you want to use Mysql , comment this line DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
If not comment the other line
Symfony : An exception occurred in driver: could not find driver
You need to install MysQl, for Ubuntu just usesudo apt-get install php-mysql
Symfony fos:user:create through error could not find driver, (Xampp with multiple verison of PHP)
SOLUTION
Because you have two PHP versions, in the new one you need to enable the pdo_mysql extension that normaly is not.
STOP the Apache Server in the XAMPP controller.
just go in the folder C:\xampp\php7_4
and open the file php.ini
search (CTRL+F) for pdo_mysql and uncomment/remove the ";"
BEFORE ;extension=pdo_mysql
AFTER extension=pdo_mysql
SAVE the changes
START the Apache Server and re-run the symfony php bin\console fos:user:create
command and it will work !!
Related Topics
SQL Server Error 1934 Occurs on Insert to Table with Computed Column PHP/Pdo
Send Email by Email Class in Codeigniter with Gmail
Pdo Last Insert Id Always the Right One
Strtolower() for Unicode/Multibyte Strings
Simple: How to Replace "All Between" with PHP
What's the Best Way/Practice to Get the Extension of a Uploaded File in PHP
Separate String in Two by Given Position
Asynchronous Http Requests in PHP
Get the Selected Index Value of <Select> Tag in PHP
How to Prevent Self Closing Tag in PHP Simplexml
PHP Upload Progress in PHP 5.4 Is Not Working. Session Variables Not Set
What Is the Best PHP Dom 2 Array Function
PHP Mail() Works from Command Line But Not Apache
Pass Form Data to Another Page with PHP
Google Drive API - PHP Client Library - Setting Uploadtype to Resumable Upload
Find Min/Max in a Two Dimensional Array