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 and Qt5 how to start? by Newbee
Forum Updated to NodeBB v4.3 + New Features

MySQL and Qt5 how to start? by Newbee

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 Posters 3.0k 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.
  • E Offline
    E Offline
    eniac
    wrote on last edited by
    #1

    Hi everyone,
    I am going to start developing some bookkeeping software for POS terminal and desktop
    application on Linux, and i am aware i will need some database to store all accounting
    information, as well receipt data and so on. The question is how to install, configure and
    set all i need for database managing app i want to develop? My biggest issue is how to setup all i need so i
    can start using database in my code. I don't know what database is good for sales bookkeeping.
    I installed MySQL server on my Mint Olivia,
    but i also heard that i will need "database drivers" but i don't know how or what and how they are used.
    There is a lot i still don't know but i want someone to point me in a right direction with this.
    Thank you for reading all of this !! :)

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

      Hi and welcome to devnet,

      Everything database driver related can be found "here":http://doc-snapshot.qt-project.org/qt5-stable/qtsql/sql-driver.html You can also find the same document for Qt 4

      For the underlying database engine, MySQL or MariaDB, Postgresql, it's pretty much up to you to decide what fits you needs best.

      The database setup part is not really Qt related, you should rather use a more specific forum, you'll get better answer there.

      To get started you should read the "QtSql module documentation":http://doc-snapshot.qt-project.org/qt5-stable/qtsql/sql-programming.html and examples, this will put you on the right track

      Hope it helps

      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
      • E Offline
        E Offline
        eniac
        wrote on last edited by
        #3

        Thank you for that wery much ! I will look at those links as soon i resolve some issues with mysql server configuration .. it gives me a headache already! I have stumbled on a problem with some JDBC connectors in LibreOffice.. I thought i will use it to start editing data..it seems so daunting. Not simple at all! But i know i have to look on other place for help on that

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

          Try searching for LAMP, this might help you get started a bit easier.

          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
          • E Offline
            E Offline
            eniac
            wrote on last edited by
            #5

            I don't really need PHP and Apache.. :( I just want to create some database
            to store bookkeeping data. Is it possible to create MySQL and edit database directly from C++ or QML inside of Qt IDE without needing to install mysql server and all of that ?

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

              Accessing the databases from C++, ? Yes
              Having a MySQL database without a MySql server ? No

              Tools for managing the server should come with the installation of the server, having a LAMP installed you could use phpmyadmin to do the administrative tasks on your server (like creating a database and handling and adding a non root user) with a friendly interface

              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
              • E Offline
                E Offline
                eniac
                wrote on last edited by
                #7

                Thank you, i will go ahead now and try that solution and see how it will behave.

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  eniac
                  wrote on last edited by
                  #8

                  It seems that is it ! :) thank you for help! I am yet to be asking questions though! :D

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

                    You're welcome !

                    Don't hesitate to ask ! But please, create a new thread for your each new questions.

                    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

                    • Login

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