DeBoerTool / odbc-driver

ODBC Driver for Laravel 5.5+
MIT License
25 stars 11 forks source link

PDOException : could not find driver #5

Closed amalbabyconfianz closed 4 years ago

amalbabyconfianz commented 4 years ago

The following is my ODBC config [my-connector] Description = MySQL connection to database Driver = MySQL ODBC 8.0 Driver Database = Server = localhost User = root Password = Port = 3306 Socket = /var/run/mysqld/mysqld.sock

What is "odbc:DB_CONNECTION_STRING"?, is it in the above config?

danielsdeboer commented 4 years ago

Make sure you have the pdo_odbc extension enabled.

The dsn or data source name is whatever string your ODBC connection needs to connect. These vary by database vendor. Some examples here: https://github.com/DeBoerTool/odbc-driver#connection-string