'testing database creation symfony5

DATABASE_URL="mysql://root:@127.0.0.1:3306/app?serverVersion=5.7&charset=utf8mb4"

doctrine:
dbal:
    url: '%env(resolve:DATABASE_URL)%'

    # IMPORTANT: You MUST configure your server version,
    # either here or in the DATABASE_URL env var (see .env file)
    #server_version: '13'
orm:
    auto_generate_proxy_classes: true
    naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
    auto_mapping: true
    mappings:
        App:
            is_bundle: false
            dir: '%kernel.project_dir%/src/Entity'
            prefix: 'App\Entity'
            alias: App

In ExceptionConverter.php line 119:

An exception occurred in the driver: could not find driver

In Exception.php line 30:

could not find driver

In Driver.php line 28:

could not find driver command : php bin/console doctrine:database:create



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source