I am trying to connect PostgreSQL with Laravel 5.0 but facing exception 'Could not Find Driver in PostgreSQL'. I have tried this solution but cannot connected with PostgreSQL stackoverflow answer My database.php config file is following 'default' = 'pgsql' 'pgsql' = 'driver' = 'pgsql', 'host'. This message means you need to install and or activate postgresql extension in PHP. This solution works for me: To install postgresql extension sudo apt-get install php-pgsql.
- Pdoexception Could Not Find Driver Wamp
- Pdoexception Could Not Find Driver Sql Server
- Pdoexception Could Not Find Driver Postgres
- Pdoexception Could Not Find Driver Sqlsrv
- Pdoexception Could Not Find Driver Sqlite
- Laravel Could Not Find Driver
pdo is working fine with mysql but with pgsql its giving error 'PDOException' with message 'could not find driver'
I've installed php5-pgsql
package which also includes pdo_pgsql
This package provides a module for PostgreSQL database connections directly from PHP scripts. It also includes the pdo_pgsql module for use with the PHP Data Object extension.
my dsn is pgsql:dbname=DB;host=192.168.0.2
I am using Ubuntu 10.04
Pdoexception Could Not Find Driver Wamp
8 Answers
1) Have you enabled pgsql.so in php.ini
(extension=pgsql.so
)?
2) Is you Postgresql listenin on 192.168.0.2
interface? (You can check it by netstat -tpln
)
3) How you authenticate your access into Postgresql?
Jan MarekJan MarekThis message means you need to install and or activate postgresql extension in PHP
This solution works for me :To install postgresql extension
after, for activating it, uncomment pgsql
and pdo-pgsql
extensions in etc/php/$PHP_VERSION/apache2/php.ini
file
Finally, type :
To restart apache server if you use apache such as was my case..
Pdoexception Could Not Find Driver Sql Server
Make sure you've uncommented the line that tells php where the Postgres driver is (usually extension=pgsql.so
) in the main php.ini
file.
I had the same issue. First of all - check is it enabled in php.ini. Uncomment extension=php_pdo_pgsql..
Ad Infinitum is an atmospheric single-player horror game, which puts you into a World War I setting experienced in a first-person perspective. You find yourself in the trenches of a forlorn battlefield where vicious creatures lurk in the shadows. https://wedomg.netlify.app/ad-infinitum-game.html. Ad Infinitum is an atmospheric single-player horror game, which puts you into a World War I setting seen through a first-person perspective. Ad Infinitum is an atmospheric single-player horror game, which puts you into a World War I setting experienced in a first-person perspective. You find yourself in the trenches of a forlorn battlefield where vicious creatures lurk in the shadows. Ad Infinitum is an atmospheric single-player horror game, which puts you into a World War I setting seen through a first-person perspective. You find yourself in the trenches of a forlorn battlefield where your are being hunted by vicious creatures. Solve puzzles to clear pathways and sneak through trenches to hide from vicious creatures.
than set up extension directory!!
and do not forget to restart server after changing the config.
Here is what I did to solve the problem.
Edit
php.ini
and remove;
fromextension=pdo_pgsql
. Also, addextension=pgsql.so
to thephp.ini
file.Make sure to restart the Apache server before you try to see the result.
Try to remove semicolon in front of
extension=pgsql
extension=pgsql.so
included in your php.ini file
SearchPlease enter your ZIP code OR city and state abbreviationTexas is a state known for its fierce independent streak, and that extends to the way the government is run there. Tx dps driver license office.
Pdoexception Could Not Find Driver Postgres
You can do that from the XAMPP Control Panel.
Antoine Boisier-MichaudWhen you do not have postgresql installed on the same machine that is Apache and PHP; you have to install php-pgsql
and don't have to add extensions in php.ini
manually in Linux (in Windows yes), because redundancies are generated and this does not work (checked in error.log
).
Then you can check the existence of the extension enabled automatically in:
Observations: In phpinfo()
you will find the directory conf.d/
and the file error.log
Pdoexception Could Not Find Driver Sqlsrv
GL
Pdoexception Could Not Find Driver Sqlite
CORONEL BraianLaravel Could Not Find Driver
CORONEL BraianCopy libpq.dll from the PHP directory to Apache24bin (or wherever your installation could be).
Pathik Vejani