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

Android & mySQL

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.1k Views 2 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.
  • D Offline
    D Offline
    darida
    wrote on last edited by
    #1

    Hi, I'm developing a small app, which needs to connect to a mySQL remote server. Debugging on my desktop (Linux mint 17) it works fine. When I try to build it for android and deploy to phone i get the following message and it doesn't work:

    W/libprofclient.so( 4531): (null):0 ((null)): QSqlDatabase: QMYSQL driver not loaded
    W/libprofclient.so( 4531): (null):0 ((null)): QSqlDatabase: available drivers: QSQLITE

    So.. the question is how do i connect to a mysql server from an android app ? Is it possible ? Thanks

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

      Hi and welcome to devnet,

      Please search the forum a bit, that question has already been answered several times. Short version: you first have to build the MariaDB client library for Android (There's no native MySQL client library) and then you can build the MySQL plugin. However depending on your needs you might better access the data you need through a web service rather that opening the access to your database server.

      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
        darida
        wrote on last edited by
        #3

        Thank you, I already tried it, but understood only today that i have to compile it against the correct QT source code

        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