简体   繁体   中英

php bin/console doctrine:database:create this problem appeared (i'm using symfony4)

C:\projet1\locationvoiture>php bin/console doctrine:database:create

In AbstractPostgreSQLDriver.php line 79:

An exception occurred in driver: could not find driver

In PDOConnection.php line 31:

could not find driver

In PDOConnection.php line 27:

could not find driver

doctrine:database:create [-s|--shard SHARD] [-c|--connection [CONNECTION]] [--if-not-exists] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--]

In your php.ini, uncomment the line;extension=pdo_pgsql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM