I am setting up my Symfony 3 project (using Netbeans IDE) and want to use PostgreSQL as my database instead of MySQL. After some time online I have found a few potential solutions (one of which is mentioned here but this one does not seem to work for me). So:
- My symfony 3 project is running on the local MAMP server
- PostgreSQL server is running on the local machine as well
- I have setup my
parameters.yml
file as per below:
- database_driver: pdo_pgsql
- database_host: localhost
- database_port: 5432
- database_name: mypgdatabase
- database_user: mypguser
- database_password: mypguserpass
The error that i am getting when generating entities is:
[Doctrine\DBAL\Exception\DriverException]
An exception occurred in driver: could not find driver
[Doctrine\DBAL\Driver\PDOException]
could not find driver
[PDOException] could not find driver
Been trying to figure this one out for a few days now so any help will he highly appreciated.