Php Postgresql Could Not Find Driver

Php Postgresql Could Not Find Driver Average ratng: 5,8/10 5561reviews

Questions: I’m trying to connect with PostgreSQL database through Laravel in order to do a php artisan migrate but doesn’t seem to be directed since it’s reading the database name of MySQL. Here are the commands from database.php: 'connections' =>array( 'sqlite' =>array( 'driver' =>'sqlite', 'database' =>__DIR__.' Download Driver Hp Pro 3500 Mt.

Could Not Find Driver Sql Laravel

Or, if you just need a driver for PHP, but that it doesn't have to be the PDO one: apt-get install php5-pgsql Otherwise, that message most likely means you need to install a more recent libpq package. To check if the PDO PostgreSQL driver is enabled, you open the php.ini file and check if the following line is un-commented. If it is not, you can remove the semicolon (; ) in front of the entry.

Be sure to configure the 'default' key in app/config/database.php For postgres, this would be 'default' =>'postgres', If you are receiving a [PDOException] could not find driver error, check to see if you have the correct PHP extensions installed. You need pdo_pgsql.so and pgsql.so installed and enabled.

Instructions on how to do this vary between operating systems. For Windows, the pgsql extensions should come pre-downloaded with the official PHP distribution. Just edit your php.ini and uncomment the lines extension=pdo_pgsql.so and extension=pgsql.so Also, in php. Hp Compaq Nc8430 Drivers Download Windows 7. ini, make sure extension_dir is set to the proper directory. It should be a folder called extensions or ext or similar inside your PHP install directory. Finally, copy libpq.dll from C: wamp bin php php5.* into C: wamp bin apache* bin and restart all services through the WampServer interface. If you still get the exception, you may need to add the postgres bin directory to your PATH: • System Properties ->Advanced tab ->Environment Variables • In ‘System variables’ group on lower half of window, scroll through and find the PATH entry. • Select it and click Edit • At the end of the existing entry, put the full path to your postgres bin directory.