Results 1 to 1 of 1

Thread: Ubuntu 14.04 mysql driver not loaded

  1. #1
    Join Date
    Jul 2015
    Posts
    21
    Thanks
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Ubuntu 14.04 mysql driver not loaded

    Hey guys,
    first of all english isnt my first language. And please talk to me like you would talk to a little stupid kid .
    I can connect to the database with Qt 5.4 but 5.5 dont work. I get the following error text:
    Error:
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
    Something went Wrong: "Driver not loaded Driver not loaded"
    ("/home/samuel/Qt/5.5/gcc_64/plugins", "/home/samuel/Documents/build-Arbeit-Desktop_Qt_5_5_0_GCC_64bit-Debug")
    With the following code;
    Qt Code:
    1. #include <QApplication>
    2. #include <QtCore/QCoreApplication>
    3. #include <QtSql>
    4. #include <QtDebug>
    5. int main(int argc, char *argv[])
    6. {
    7. QApplication a(argc, argv);
    8. QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
    9. db.setConnectOptions();
    10. db.setHostName("localhost");
    11. db.setDatabaseName("test");
    12. db.setUserName("root");
    13. db.setPassword("1234");
    14. if(db.open()) {
    15. qDebug() << "Opened!";
    16. db.close();
    17. }
    18. else {
    19. qDebug() << "Something went Wrong:" << db.lastError().text();
    20. qDebug() << QCoreApplication::libraryPaths();
    21. }
    22.  
    23. return a.exec();
    24. }
    To copy to clipboard, switch view to plain text mode 


    SOme more informations:
    linux-vdso.so.1 => (0x00007ffcd4174000)
    libmysqlclient_r.so.16 => /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.16 (0x00007faa6b469000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007faa6b250000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007faa6b017000)
    libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007faa6adfd000)
    libssl.so.10 => not found
    libcrypto.so.10 => not found
    libQt5Sql.so.5 => /home/samuel/Qt/5.5/gcc_64/plugins/sqldrivers/./../../lib/libQt5Sql.so.5 (0x00007faa6abbd000)
    libQt5Core.so.5 => /home/samuel/Qt/5.5/gcc_64/plugins/sqldrivers/./../../lib/libQt5Core.so.5 (0x00007faa6a478000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007faa6a25a000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007faa69f56000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007faa69c50000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007faa69a3a000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faa69675000)
    libicui18n.so.54 => /home/samuel/Qt/5.5/gcc_64/plugins/sqldrivers/./../../lib/libicui18n.so.54 (0x00007faa69207000)
    libicuuc.so.54 => /home/samuel/Qt/5.5/gcc_64/plugins/sqldrivers/./../../lib/libicuuc.so.54 (0x00007faa68e59000)
    libicudata.so.54 => /home/samuel/Qt/5.5/gcc_64/plugins/sqldrivers/./../../lib/libicudata.so.54 (0x00007faa6742f000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007faa6722b000)
    libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007faa67029000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007faa66e21000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007faa66b19000)
    /lib64/ld-linux-x86-64.so.2 (0x00007faa6ba87000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007faa668db000)
    libssl.so.10 => not found
    libcrypto.so.10 => not found
    How can I fix it?
    libdbd-mysql-perl install
    libmysqlclient-dev install
    libmysqlclient18:amd64 install
    libqt5sql5-mysql:amd64 install
    mysql-client-5.5 install
    mysql-client-core-5.5 install
    mysql-common install
    mysql-server install
    mysql-server-5.5 install
    mysql-server-core-5.5 install
    mysqltuner install
    I hope this informations help.
    Thanks for reading and help in advance
    Last edited by ReasyEasyPeasy; 3rd October 2015 at 13:44.

Similar Threads

  1. Driver not loaded (sqlite) at Ubuntu
    By Simplevolk in forum Newbie
    Replies: 1
    Last Post: 8th February 2013, 15:50
  2. Replies: 2
    Last Post: 20th October 2012, 11:06
  3. MySQL Driver not loaded on PC without Qt
    By KTvsPeacock in forum Installation and Deployment
    Replies: 39
    Last Post: 20th September 2010, 22:37
  4. MySQL driver not loaded
    By hami in forum Installation and Deployment
    Replies: 1
    Last Post: 12th May 2009, 20:54
  5. MySql Driver not loaded
    By eekhoorn12 in forum Installation and Deployment
    Replies: 13
    Last Post: 18th June 2007, 14:57

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.