Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Raspberry Pi 3 - MySQL client connect error
Forum Updated to NodeBB v4.3 + New Features

Raspberry Pi 3 - MySQL client connect error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 3 Posters 2.6k 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.
  • A Offline
    A Offline
    Adie
    wrote on 26 Jul 2017, 08:39 last edited by
    #1

    Hi
    OK, I'm new to Linux so struggle a bit to get past all the 'Geek Speak'
    I get the 'dreaded' QMYSQL driver not loaded.

    1. We can connect via PHPAdmin without any issues so all Server side is up and running.
    2. We can log on to MySQL via the console.

    We did the 'sudo' things and everything is installed. (or maybe not?)
    Now, how (rather where) is the file(s) that must be linked in the app. We searched the Pi and net but none of the solutions work - or we are just to spoiled by Windows programming to understand them.

    Regards
    Adie

    J 1 Reply Last reply 26 Jul 2017, 11:16
    0
    • A Adie
      26 Jul 2017, 08:39

      Hi
      OK, I'm new to Linux so struggle a bit to get past all the 'Geek Speak'
      I get the 'dreaded' QMYSQL driver not loaded.

      1. We can connect via PHPAdmin without any issues so all Server side is up and running.
      2. We can log on to MySQL via the console.

      We did the 'sudo' things and everything is installed. (or maybe not?)
      Now, how (rather where) is the file(s) that must be linked in the app. We searched the Pi and net but none of the solutions work - or we are just to spoiled by Windows programming to understand them.

      Regards
      Adie

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 26 Jul 2017, 11:16 last edited by
      #2

      @Adie Did you install MySQL client library?
      Take a look at https://forum.qt.io/topic/40672/how-to-create-the-plugin-of-mysql-for-qt

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Adie
        wrote on 26 Jul 2017, 13:17 last edited by
        #3

        That is for the WINDOWS solution. My Win10 system works 100% after I just copied the required file to my app folder.

        The issue here is to get a Qt app developed on the Pi (Raspbian) to run. I cant find the Qt OR the MySQL folders on the Pi.

        Adie

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 26 Jul 2017, 21:53 last edited by
          #4

          Hi and welcome to devnet,

          The question @jsulm wrote still applies. Did you install MySQL on your device ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply 27 Jul 2017, 19:02
          1
          • S SGaist
            26 Jul 2017, 21:53

            Hi and welcome to devnet,

            The question @jsulm wrote still applies. Did you install MySQL on your device ?

            A Offline
            A Offline
            Adie
            wrote on 27 Jul 2017, 19:02 last edited by
            #5

            Read my first post please. (and header)
            Everything is working EXCEPT that I get the now famous "Can not connect to MySQL" with Qt app because the 'client driver' is not available on the Pi.

            I tried all the options I could find on the web. I am developing ON the Pi so no "cross compile'.

            As far as I understand I need to do one of two things

            1. Compile the MySQL client 'driver' and copy that in the Qt App folder.
              or
            2. Compile the driver IN my Qt app.
              I dont care which as long as I can proceed with the development.

            So, All I need is WHERE to get the file(s) and where to copy them.

            Adie

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 27 Jul 2017, 22:49 last edited by
              #6

              What version of MySQL do you have installed on your device ?
              What do you get if you run ldd /path/to/Qt/mysql_plugin_name.so ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply 28 Jul 2017, 08:27
              0
              • S SGaist
                27 Jul 2017, 22:49

                What version of MySQL do you have installed on your device ?
                What do you get if you run ldd /path/to/Qt/mysql_plugin_name.so ?

                A Offline
                A Offline
                Adie
                wrote on 28 Jul 2017, 08:27 last edited by
                #7

                @SGaist said in Raspberry Pi 3 - MySQL client connect error:

                What version of MySQL do you have installed on your device ?
                What do you get if you run ldd /path/to/Qt/mysql_plugin_name.so ?

                MySQL server 5.5.55

                The problem is: (Remember I'm 'spoiled' by Microsoft :-( )
                1 dont know where '/path/to/Qt/' is.
                1 dont know the 'real' name for 'mysql_plugin_name'

                If I new those I might have solved the problem :-)

                This is what we have done on the Pi
                1: sudo apt-get install libmysqlclient-dev
                2a: udo apt-get install libmysqlclient-dev
                2b: sudo apt-get install libmysqlcppconn-dev
                3: sudo apt-get build-dep libmysqlcppconn-dev

                Qt is installed and running.
                So based on the above I 'should' have done everything ?
                Like is said above: I can not find the required files on the Pi - maybe because I do not know how to look for it Eg: Qt install path ??

                Thanks Adie

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 28 Jul 2017, 21:36 last edited by
                  #8

                  How did you install Qt on your device ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Adie
                    wrote on 6 Aug 2017, 19:26 last edited by
                    #9

                    not to worry anymore, gonna ditch the project

                    Waay to complex to distribute and maintain applications on Linux.

                    Adie

                    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