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 connect
Forum Updated to NodeBB v4.3 + New Features

mysql connect

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 1.6k 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.
  • H Offline
    H Offline
    hamedaz
    wrote on last edited by
    #1

    Hi. I can read from my database when the file is attached in mysql server, but when I detach the file, not surprisingly, I can't work with the database. What I want to do is to deploy my application to the end user who doesn't have mysql server installed. I know there is a kind of run-about but I am not sure exactly what it is. Every single piece of help is appreciated.

    1 Reply Last reply
    0
    • Hamed.MasafiH Offline
      Hamed.MasafiH Offline
      Hamed.Masafi
      wrote on last edited by
      #2

      You can use sqlite

      Remote object sharing (OO RPC)
      http://forum.qt.io/topic/60680/remote-object-sharing-oo-rpc-solved

      Advanced, Powerful and easy to use ORM for Qt5
      https://forum.qt.io/topic/67417/advanced-powerful-and-easy-to-use-orm-for-qt5

      H 1 Reply Last reply
      0
      • Hamed.MasafiH Hamed.Masafi

        You can use sqlite

        H Offline
        H Offline
        hamedaz
        wrote on last edited by
        #3

        @Hamed.Masafi
        I do not want my sqlite

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          MySQL database without server? I don't think this is possible as MySQL is server based. Maybe you can provide MySQL server together with your application. But that would be overkill.
          Why not use SQLite as Hamed.Masafi suggested? It is a very good solution for databases without server.

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

          H 1 Reply Last reply
          0
          • jsulmJ jsulm

            MySQL database without server? I don't think this is possible as MySQL is server based. Maybe you can provide MySQL server together with your application. But that would be overkill.
            Why not use SQLite as Hamed.Masafi suggested? It is a very good solution for databases without server.

            H Offline
            H Offline
            hamedaz
            wrote on last edited by
            #5

            @jsulm
            I wrote the program a desktop app
            How provide MySQL server together with your application in qt?

            1 Reply Last reply
            0
            • jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Well, this question is not related to Qt at all.
              It depends on which platform you want to deploy your application: Windows, MacOS, Linux?
              You will need to install MySQL on the target machine. Or ask your users to do so.
              I'm really wondering why you don't want to use SQLite? Instead you want to bring even more software to your users just to have a database! Is there a reason you cannot use SQLite? With SQLite you only need to provide the database file together with your application.

              One more comment: database servers are meant for server-client environments where several clients access a server. Is this the case for your application? If each user has its own database and does not share it with others, then it does not make any sense to use MySQL.

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

              H 1 Reply Last reply
              0
              • jsulmJ jsulm

                Well, this question is not related to Qt at all.
                It depends on which platform you want to deploy your application: Windows, MacOS, Linux?
                You will need to install MySQL on the target machine. Or ask your users to do so.
                I'm really wondering why you don't want to use SQLite? Instead you want to bring even more software to your users just to have a database! Is there a reason you cannot use SQLite? With SQLite you only need to provide the database file together with your application.

                One more comment: database servers are meant for server-client environments where several clients access a server. Is this the case for your application? If each user has its own database and does not share it with others, then it does not make any sense to use MySQL.

                H Offline
                H Offline
                hamedaz
                wrote on last edited by hamedaz
                #7

                @jsulm said:

                it does not make
                thanks
                Because I
                This is the perfect program for me with Mysql
                Implemented
                I want my program on Windows,I want my database for local in project

                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