How install mysql odbc freetds postegresql sqlite sqlite3 Drivers on Ubuntu



  • Hello friends for install these drivers make this intrucctions

    1. Go to software center ubuntu search libqt4 for QT4 libqt5 for QT5 and install
      -Qt 5 My SQL database driver
      -Qt 5 My ODBC database driver
      -Qt 5 My FREETDS database driver
      -Qt 5 My POSTEGRESQL database driver
      -Qt 5 My SQLITE database driver
      -Qt 5 My SQLITE3 database driver
      2)Go to Qt Creator>Tools>Options>Build and Run>Qt Versions
      in autodetected click on your compiler look down and click on qt version 5/4 details
      look you QT_INSTALL_PLUGINS and go to there.
      3)In terminal execute sudo nautilus
      4)Go to /usr/lib/i386-linux-gnu/qt5/plugins/sqldrivers [for 32bitubuntu] or /usr/lib/x86_64-linux-gnu/qt5/plugins/sqldrivers [for 64bitsubuntu]
    2. copy all of .so files in sqldrivers and paste in you QT_INSTALL_PLUGINS/sqldrivers folder in my case /home/user/Qt/5.2.1/gcc_64/plugins/sqldrivers
      in you .pro of you proyect file add "QT += sql" .
      Thats is all sorry for my english and regards form Argentina

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What you are describing is not the right way to get the plugins. It might be working now because your installed Qt version matches your distribution Qt version but that just luck.

    The instructions to build additional plugins can be found "here":http://qt-project.org/doc/qt-5/sql-driver.html#supported-databases


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.