Get MSYS2 for Windows. Get cmake. Cross compile the mysql client library using cmake and the GCC for Android you have. Make sure to enable the static output, so later you can build a self contained plugin.

Now you have the static library "libmysqlclient.a" and all include files on the output directory you specified on cmake. When configuring Qt, add the flags for additional include directory (-I) and library directory (-L) using the paths you have. And that's it.

I would also compile Qt for Android using MSYS2 and not Windows Prompt. The "configure" shell script seems to be smarter than the ".bat" one.

ok at first, thanks for the answer.
but sorry for the question, but how i cross compile the mysql client library using cmake and the GCC for Android and enable the static output ? should not the shell script do it for me?

I try already to use the shell script with msys 1.0( not 2) the picture with the error above is msys (not a .bat with the windows prompt)

I'm assuming you may not be used to compiling using a shell. The download above has a GUI with a wizard that might help you cross compile. Use it to generate the Makefile. Then go on msys and type "make".

I have never used the mariadb client. I can only help you with libmysqlclient.

ok thanks for the answer.
i tried the last 3 days to make the Driver for Android but the hole scrips and different versions that maybe not working together working for me all not together....
do you can give me a step by step instruction to configure the mysql plugin till the end when i try to make? maybe for you is it easy, but i´m dont know what i will do...

It's been a while since I've done this process. I was repeating it now to write a step by step tutorial to you and it's much more painful than I could remember... There are many errors and patches to apply along the process. I think it's just easier to share the binary I have obtained with you. I see you're using GCC 4.9. I've used 4.8. Maybe it still works.

ok i think i have to set the -xplatform android-g++ option.
if i try this i will answer...

update:
i run the configure command in the ms prompt and there it should work...
have i then do additional things? or can i run in the same directory as configure is the make command and thats it? get i then a new .so file for the arch-armv7 folder?

ok i try another few things but still an error. It´s maybe possible to take a workable libqsqlmysql.so from an other user for my qt 5.7 ?
I have only found a version for qt 5.3.2 and i´m thinking about to downgrade qt if i don´t get another solution...

What error are you getting? The problem here is that you need a libqsqlmysql.so for Android. You're not likely to find any other out there. Here are all the flags I use when compiling Qt 5.8.0 on MSYS2:

after that, i run the How to Build the QMYSQL Plugin on Unix and macOS from http://doc.qt.io/qt-5/sql-driver.html , which told me:
type in terminal cd /home/Qt/5.7/Src/qtbase/src/plugins/sqldrivers/mysql

now i only have to comment out the block in the libmariadb/CMakeLists.txt :
SET_TARGET_PROPERTIES(libmariadb PROPERTIES VERSION ${CPACK_PACKAGE_VERSION_MAJOR} SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR})
and all should be fine and now i can load the mysql or mariadb plugin on android.

@Allerknappe Not sure whether this was already asked: why do you want to connect to a MySQL server from Android? It is quite unusual to connect to a SQL server directly from a mobile device, because you have to expose your SQL database to the internet/intranet. Usually a REST API is used to communicate between mobile clients and the server.

@jsulm
ah thats sound interesting. i´m sorry but i thougt to use the mysql api is the usual way to comminicate with the mysql database... from the REST API i never heard about it, but i´m only learn programming and qt from the qt doc and there i try only the things, which i found usefull.
If it´s really usefull or not is maybe a other question.

its also so hard to get an REST API for Qt ? I found no example to create a plugin or driver...
Maybe you now some good advice to learning the handling with the API?