Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MySQL : wrong driver version
QtWS25 Last Chance

MySQL : wrong driver version

Scheduled Pinned Locked Moved Unsolved General and Desktop
mysqldriverlinux
2 Posts 1 Posters 941 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Didier SampaoloD Offline
    Didier SampaoloD Offline
    Didier Sampaolo
    wrote on last edited by
    #1

    Hi,

    I'm using Qt5.6 OpenSource (I had the same problem with 5.5) on Debian Jessie.
    I'd like to connect to a MySQL database.

    The problem is that Qt is looking for libmysqlclient_16 but it's not the currently installed version (which is libmysqlclient_18). I tried to add symlinks from 18 to 16 (didn't work).

    I read that I need to rebuild the plugin to make it use the newest driver (here). Sounds good, but I can't find a $QTDIR/src/plugins/ directory. I have a $QTDIR/Src/ but no "plugins" inside it.

    I'm new to using Qt, so I'm a bit lost. Any insight would be appreciated.
    Thank you !

    Didier SampaoloD 1 Reply Last reply
    0
    • Didier SampaoloD Didier Sampaolo

      Hi,

      I'm using Qt5.6 OpenSource (I had the same problem with 5.5) on Debian Jessie.
      I'd like to connect to a MySQL database.

      The problem is that Qt is looking for libmysqlclient_16 but it's not the currently installed version (which is libmysqlclient_18). I tried to add symlinks from 18 to 16 (didn't work).

      I read that I need to rebuild the plugin to make it use the newest driver (here). Sounds good, but I can't find a $QTDIR/src/plugins/ directory. I have a $QTDIR/Src/ but no "plugins" inside it.

      I'm new to using Qt, so I'm a bit lost. Any insight would be appreciated.
      Thank you !

      Didier SampaoloD Offline
      Didier SampaoloD Offline
      Didier Sampaolo
      wrote on last edited by
      #2

      Auto-replying : I just found this tutorial that will be very helpful.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved