building a mysql dll in QT to connect to a database - mysql

I need a step by step how to compile the SQL driver to connect to my online MySql db. The idea is to compile a DLL which I copy to the working directory so the application will be able to use QMYSQL to connect with my online db.
The online documentation ( https://dev.to/f1r361rd/how-i-build-a-mysql-plugin-for-qt5-windows-mingw32-2kim ) and forums did not helped much .
In the information i found online i noticed that most people downloaded qmysql.dll, and use that file to be able to get QMYSQL loaded.
QStringList sql_drivers = QSqlDatabase::drivers();
sql_drivers.contains("QMYSQL") -> true
But that dll is version dependent , so i hope there is a solution to get this working on all versions of QT application i make in the future.
Thank you
Steve
I followed the online documentation at https://dev.to/f1r361rd/how-i-build-a-mysql-plugin-for-qt5-windows-mingw32-2kim ) and spend many hours searching on forums and talked with other software engineers . Most people seems to get not much further then searching for a compiled dll ... After spending 10+ hours trying every post i see, i still have no clue about the basic steps, the internet is scattered with too much information which is contra productive in this case, so i really seek for a simple step by step solution, tearing this thing apart to it becomes clear how it works. No one liners please. Many people will be helped with the answer to this post ! if it take too much time to write down the solution, I’m happy to send a financial compensation. If there are simpler solutions, please let me know too:)

Related

Json-editor: searching a online-tool that supports my team by building a complex json-schema/model

We are a remote-working team with the upcoming challenge to build, edit, share and document a complex json-datamodel-scheme.
For this task we are searching a tool that fits our needs in this process:
browser-based preferred (no local installation)
host the source
multiuser/auth
edit-mode: tree/column-view in addition to code-view
fast navigating to $refs
export as schema-documentation
All tools we have tested so far lack on some of our points and we did not find an appropriate solution...
Maybe we get some advice from community here
Thanks

Integrated EJabberd Login with existing Script1

I have quiet decent knowledge how to use Ejabberd. Have used a lot with Smack Library for android so am quiet comfortable as a user. However I face use case that I have not faced before.
There exists as system with its users and login interfaces both using forms and another using API. Now I need to integrate it with ejabberd. The most common and documented way is to use ejabberd OAuth2 but now am supposed to do the opposite.
Reading the docs the best I found is this link talking about external script. However there are no enough information to help build something. Linked examples are old and links are dead.
Can anyone help me get into right direction with external script login? I would prefer PHP based solution but any other language will help.
However there are no enough information to help build something.
Brief protocol description, and example in Python:
https://docs.ejabberd.im/developer/guide/#external
Perl example included with ejabberd. Notice this file was last modified 11 years ago, and it still works correctly:
https://github.com/processone/ejabberd/tree/master/examples/extauth
Linked examples are old and links are dead.
Right, those other examples are very old too, but they could work (as long as you can get them, and use the ancient language versions they used):
https://ejabberd.im/extauth
Why are those so old? Because that page has not been updated since years ago (back when git was not yet mainstream). Quite probably, if you search, you may find other examples.

Reading XML Without a webserver

I've got a small experimental project on the go that uses an embedded system to show web pages.
The major draw back is that the embedded system doesn't have any form of server on it (No lovely web server languages allowed).
My current setup for testing any potential winning solution is locally (Just in a document C:/users/me/test/index.html) and then also testing it in wamp.
I've looked into using JS or JQuery but evey resource i've found only ever works when I test it within wamp, which isn't a viable solution for me.
I have a couple of questions:
Is it even possible to read an XML document without any form of
server technology?
If so, could someone post some resources please? I've found a lot of similar topics to mine, but none really cover my predicament.
If this isn't possible, are there any other technologies I could use to give the same output?
Thanks

Mysql connector/c Version >=6 on Windows XP

I have to "downgrade" an existing apllication running fine on windows 7.
When starting in on Windows XP (SP3) it crashes with the comment The procedure entry point InitializeConditionVariable could not located in the dynamic library Kernel32.dll.
Reading the oracle forum tells that on needs mysql.dll in Version < 6.
But how to optain such a DLL? I'm not able to find it from the oracle website.
Are there official ressources?
Hi there, I need to push the question up. I'm sorry, I can't believe there is no one able to answer. The question is two weeks old. Any help over there?
And once again a need to push - two further weeks without any help.
I am the guy who posted on the Oracle forum. This is the last Windows XP 32 bit compatible libmysql.dll I could find anywhere on the Internet.
You may find the DLL at this URL.
The download link is working at the time I am posting this answer.
It's an unofficial, third party website, not endorsed by Oracle. I warmly encourage who downloads it to scan it for viruses etc.
Best regards,
dfumagalli
Dario, thank you for your helpful answer.
I did not mark it as an answer, as there is no guarantee, the dll is from mysql.
I asked at mysql and got the following answer (from Lenka Kasparova):
I asked my colleagues and got advised on following response:
=====
We offer archives of earlier versions of Connector/C from our download archive:
http://downloads.mysql.com/archives/c-c/
Unfortunately versions prior to 6.0 spans back quite far and is no longer supported for download.
=====
But inspired by that I found another solution: Visiting the page http://dev.mysql.com/downloads/mysql/ I found a way to download mysql-5.6.19-win32.zip (MD5: a855f736a676bd9b50b1a9a8c1b73065) from the Generally Available (GA) Releases. This file contains the wanted libmysql.dll.
You can see the crc checksum 53010E33 for the filesize 4 432 384 B in the screenshot:
For those, who do not want to download the big .zip (217 394 KB), feel free to ask me for the given DLL or search for that version on the net and be sure to compare the hashes. That should be a little bit more trustable.

Combining Cocoa and MySQL

i was searching SO for help on this, but i can't seem to find a concrete solution.
Is, or isn't it possible to connect to a mysql database with Cocoa?
Because i'm working on a program that i'd like to extend to a database, but i sure as hell don't know how!
I mean, that cocoa-mysql package is heavily outdated, and i dont even know what a C wrapper is!
Can someone please tell me how to do this, or atleast burst my bubble to tell me that it can't be done?
Thanks!
Since Core Data came out, I'm not surprised that other DB-wrapping Cocoa libraries are falling out of date. If you don't need to specifically wrap a MySQL DB, then I'd look at Core Data and its SQLite backend. It's available for both Mac OS and iPhone platforms.