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. How to create the plugin of MYSQL for Qt
Forum Updated to NodeBB v4.3 + New Features

How to create the plugin of MYSQL for Qt

Scheduled Pinned Locked Moved General and Desktop
33 Posts 17 Posters 39.0k Views 4 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #20

    Just one question, do you only need to build the MySQL plugin ? If so, there's no need to rebuild Qt completely

    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
    • D Offline
      D Offline
      danny36
      wrote on last edited by
      #21

      This is the first time for me with C++ and QT so for me it's all new and I do not know what are the requirements needed to achieve my goal.
      I want to make a windows application that keep some signal from a RFID antenna attached to notebook from serial and store data in a mysql database.
      To start I want only to connect to mysql database and read a table data.

      So I guess I need only mysql plugin.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #22

        Then just compile the MySQL plugin like described in the documentation, no need to rebuild everything.

        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
        • K Offline
          K Offline
          kambokdol
          wrote on last edited by
          #23

          @
          case "re":
          include("$folderPath_php/write.php");
          break;
          case "re_ok":
          include("$folderPath_php/write_ok.php");
          break;
          case "del":
          include("$folderPath_php/del_ok.php");
          break;
          case "all_del_ok":
          include("$folderPath_php/all_del_ok.php");
          break;
          case "all_move_ok":
          include("$folderPath_php/all_move_ok.php");
          break;
          default:
          include("$folderPath_php/list.php");
          break;
          @

          1 Reply Last reply
          -1
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #24

            What does that message have to do with the current question ?

            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
            • M Offline
              M Offline
              masum
              wrote on last edited by
              #25

              what about other platform?

              Kind Regards

              Md. Rashidul Hasan
              Software Architect
              OnnoRokom Software Ltd.
              Cell: 8801836885252

              1 Reply Last reply
              -1
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #26

                Can you be more specific ?

                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
                • D Offline
                  D Offline
                  danny36
                  wrote on last edited by
                  #27

                  Hi all,

                  after trying to build mysql plugin now I cannot to compile a simple hello world project, the error is:

                  g++: error: CreateProcess: No such file or directory

                  this is my debugger output:

                  @11:46:35: Running steps for project CEV-Crono...
                  11:46:35: Configuration unchanged, skipping qmake step.
                  11:46:35: Starting: "C:\Qt\5.3\mingw482_32\bin\mingw32-make.exe"
                  C:/Qt/5.3/mingw482_32/bin/mingw32-make -f Makefile.Debug
                  mingw32-make[1]: Entering directory 'F:/WORKSPACE/CPP/build-CEV-Crono-Desktop_Qt_5_3_MinGW_32bit-Debug'
                  g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\CEV-Crono -I"C:\Qt\5.3\mingw482_32\include" -I"C:\Qt\5.3\mingw482_32\include\QtWidgets" -I"C:\Qt\5.3\mingw482_32\include\QtGui" -I"C:\Qt\5.3\mingw482_32\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\5.3\mingw482_32\mkspecs\win32-g++" -o debug\main.o ..\CEV-Crono\main.cpp
                  g++: error: CreateProcess: No such file or directory
                  Makefile.Debug:341: recipe for target 'debug/main.o' failed
                  mingw32-make[1]: *** [debug/main.o] Error 1
                  mingw32-make[1]: Leaving directory 'F:/WORKSPACE/CPP/build-CEV-Crono-Desktop_Qt_5_3_MinGW_32bit-Debug'
                  Makefile:34: recipe for target 'debug' failed
                  mingw32-make: *** [debug] Error 2
                  11:46:35: The process "C:\Qt\5.3\mingw482_32\bin\mingw32-make.exe" exited with code 2.
                  Error while building/deploying project CEV-Crono (kit: Desktop Qt 5.3 MinGW 32bit)
                  When executing step "Make"
                  11:46:35: Elapsed time: 00:01.@

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    root0x
                    wrote on last edited by
                    #28

                    That would of been useful about 2 months ago, but thanks for posting it

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      BlackStar
                      wrote on last edited by
                      #29

                      I m sorry for not being able to reply ^^ cause i ve moved to the web development world for a moment, thus i have forgotten about this post! anyway the instructions i did were for Windows, but i never tried the other platforms tough :/ sorry! @massum, and a big thanks to @SGaist ^^

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #30

                        Each platform has it's own gotchas but the *nix variants are generally more easy to deal with when it comes to dependencies like MySQL

                        You're welcome :)

                        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
                        • S Offline
                          S Offline
                          sujit25
                          wrote on last edited by
                          #31

                          Hello EveryOne,
                          I am a beginner to qt and unable to build a mysql driver. I'am stuck at step4 of above given steps.
                          reimp -d libmysql.dll ,gives me error
                          "reimp: libmysql.dll: invalid or corrupt import library"

                          iam also unable to
                          reimp libmysql.lib, gives me error
                          "reimp: libmysql.lib: invalid or corrupt import library"

                          reimp.exe is available from mingw-utils-0.3, but i am totally frustrated now due to failure occured multiple times.
                          I need help urgently, since project deadline is near. Will anyone please upload libqsqlmysql.a and qsqlmysql.dll on any ftp site or mail me these as an attachment. i followed all the given steps, but failed to compile.
                          my mail id is: technosujit25@gmail.com
                          plz guys,help me!!!!!
                          I seriously need ur help in order to complete this project.

                          1 Reply Last reply
                          1
                          • F Offline
                            F Offline
                            flydragon
                            wrote on last edited by
                            #32

                            Why cannot QSqlQuery execute "exit" sentence, but can execute other general query sentences?

                            K 1 Reply Last reply
                            0
                            • F flydragon

                              Why cannot QSqlQuery execute "exit" sentence, but can execute other general query sentences?

                              K Offline
                              K Offline
                              koahnig
                              wrote on last edited by koahnig
                              #33

                              @flydragon

                              Do not duplicate posting because you do not get an answer immendiately.

                              [edit:koahnig see https://forum.qt.io/topic/82629/why-qsqlquery-exec-exit-failed ]

                              Vote the answer(s) that helped you to solve your issue(s)

                              1 Reply Last reply
                              4
                              • Christian EhrlicherC Christian Ehrlicher unpinned this topic on

                              • Login

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