Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Mysql for Qt on ubuntu
Forum Updated to NodeBB v4.3 + New Features

Mysql for Qt on ubuntu

Scheduled Pinned Locked Moved Installation and Deployment
14 Posts 8 Posters 10.7k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    C0wboy111
    wrote on last edited by
    #5

    I'm on ubuntu 10.10

    What do I need to do with ldconfig?

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #6

      I was wrong about the ldconfig, sorry.

      Try this :

      Copy MySQL plugin to your Qt’s plugins directory,
      cp libqsqlmysql.so YourQtSdkPath/qt/plugins/sqldrivers

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • C Offline
        C Offline
        C0wboy111
        wrote on last edited by
        #7

        Yep, I had tried that. No dice.

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #8

          One sure thing you can do is get the sources and compile using the mysql configure option.

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cincirin
            wrote on last edited by
            #9

            Also you will need to copy libmysql(client).so to "YourQtSdkPath/qt/bin"

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dialingo
              wrote on last edited by
              #10

              No need to compile, rather do:

              @apt-get install libqt4-sql-mysql@

              1 Reply Last reply
              0
              • S Offline
                S Offline
                saidiahd
                wrote on last edited by
                #11

                first of all , you must check if your mySQL DB work correctly and you have the privilege to work with it. ( you must be the admin of your linux session and mySQL .

                "Learn from yesterday, live for today, hope for tomorrow." - Albert Einstein -

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Flesh
                  wrote on last edited by
                  #12

                  Did you ever get it to work?

                  I having it working with Ubuntu Studio 11.04 installed from the Repos, version 4.7.2; but never did get it to work from the SDK; the plugin is copied into the plugin folder; I know that MySQL is working; it works find in the installed version; just not the SDK version.

                  I tried compiling; but didn't see that it created creator; I know that is a separate issue; but it keep me from testing it; but I did copy the plugin which it created; still with no help.

                  Jeffrey Scott Flesher PhD
                  http//LightWizzard.com/

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    raja26
                    wrote on last edited by
                    #13

                    Hi, I was also having the same problem. But I figured it out with some easy steps. You can actually install the qt-mysql library from Ubuntu's Synaptic Package manager. and move it to the folder where you Qt program is looking for libraries.

                    I've written in my blog about it, if you have any doubt you can refer the following link "Qt MySQL Driver for Linux ":http://www.techieshome.in/2011/09/install-qt-mysql-driver-for-linux.html

                    1 Reply Last reply
                    0
                    • 1 Offline
                      1 Offline
                      17elcapo
                      wrote on last edited by
                      #14

                      [quote author="C0wboy111" date="1310700685"]Can someone please explain how to build mysql into qt? The 4.7.4 help says to qmake mysql.pro, but I don't have this file after an offline install of the sdk. It doesn't exist.[/quote]

                      the sdk. It doesn't exist.[/quote]

                      My friend try go in Qt Tools>Options>QtVersions>In Autodetected chose you Qt compiler>Look down click on Qt version 5 Details. Now look you PLUGINS folder and go. In sqldrivers folder check file libqsqlmysql.so exist and ins not protected.
                      If u not have this file download form Ubuntu software center searching libqt5 for QT5 or liqt4 for QT4 and install later copy the installed file /usr/lib/x86_64-linux-gnu/qt5/plugins/sqldrivers for 64bits machine or /usr/lib/i386-linux-gnu/qt5/plugins/sqldrivers for 32bits machine. to you plugins proyect folder
                      Sorry for my english regars from Argentina

                      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