New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to connect to the database: Can't open lib 'MySQL ODBC 3.51 Driver' #264

shravankumar147 opened this Issue Aug 7, 2017 · 2 comments


None yet
3 participants

shravankumar147 commented Aug 7, 2017


unable to connect with the database:
('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'MySQL ODBC 3.51 Driver' : file not found (0) (SQLDriverConnect)")


  • Python: 2.7
  • pyodbc: latest from pip install
  • OS: ubuntu 16.04 x64
  • DB:MySQL
  • driver:MySQL ODBC 3.51 Driver

This comment has been minimized.


gordthompson commented Aug 7, 2017

Have you actually installed the ODBC driver for MySQL? If so, did you register the driver so that it appears in odbcinst.ini, for example:

[MySQL ODBC 3.51 Driver]

You should be able to use the odbcinst -j command to check the location of odbcinst.ini. On Ubuntu it is typically /etc/odbcinst.ini.


This comment has been minimized.

shravankumar147 commented Mar 4, 2018

Tried and worked Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment