Answers.Body: <p>This might be the problem with the pgsql driver.</p>
  <p>You need to install and activate postgresql extension in PHP</p>
  <p>You can use below command to install it.</p>
  <pre><code>[sudo] apt-get install php-pgsql
  </code></pre>
  <p>For activating it, uncomment pgsql and pdo-pgsql extensions in etc/php/$PHP_VERSION/apache2/php.ini file.</p>
  <p>After all this you need to restart you apache server and the try to connect again.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-22T07:32:17.747Z
Answers.LastActivityDate: 2020-12-22T07:32:17.747Z
Answers.UserDisplayName: ZealousWeb
Body: <p>When i try setup db in craft 3 at windows with composer using php craft setup/db command it give me</p>
  <pre><code>Which database driver are you using? [mysql,pgsql,?]: pgsql
  Database server name or IP address: [127.0.0.1]
  Database port: [5432]
  Database username: [root]
  Database password:
  Database name: cmsdb
  Database schema: [public]
  Database table prefix:
  Testing database credentials ... failed: could not find driver
  Database server name or IP address: [127.0.0.1]```
  </code></pre>
  
Tags: <craft3><composer><postgresql>
Title: Testing database credentials Craft 3 Setup
ThreadText: # Testing database credentials Craft 3 Setup
  
  (Asked by: username_0 on 2020-11-04)
  
  When i try setup db in craft 3 at windows with composer using php craft setup/db command it give me
  
  ```
  Which database driver are you using? [mysql,pgsql,?]: pgsql
  Database server name or IP address: [127.0.0.1]
  Database port: [5432]
  Database username: [root]
  Database password:
  Database name: cmsdb
  Database schema: [public]
  Database table prefix:
  Testing database credentials ... failed: could not find driver
  Database server name or IP address: [127.0.0.1]```
  
  ```
  
  **Tags:** craft3, composer, postgresql
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-12-22. Score: 1
  
  This might be the problem with the pgsql driver.
  
  You need to install and activate postgresql extension in PHP
  
  You can use below command to install it.
  
  ```
  [sudo] apt-get install php-pgsql
  
  ```
  
  For activating it, uncomment pgsql and pdo-pgsql extensions in etc/php/$PHP\_VERSION/apache2/php.ini file.
  
  After all this you need to restart you apache server and the try to connect again.
  
  
  ---
  
  