I can’t find any documentation on this, Will someone please explain to me how I can make a MySQL Database connect to an Unreal Engine Dedicated server so I can properly start to develop my online game. This roadblock has me ripping my hair out, I’ve been searching for hours.
I would rather use C++ over Blueprints
I have a dedicated server already, I just need the ability to connect it to the database.
This should be such a simple task that is required for many many projects, I just can’t for the life of me understand why there is nothing on the internet that tells me how to do this, when this engine has been out for so long. I don’t get it.
C++ is C++ in UE4 so if you want to use anything outside UE4 APIs (and keep in never gonna able to support everything there is in the world) you simply use normal C++ libaries as you would usally do in C++ or code your own support. Here is tutorial how to add library to your code:
Because UE4 don’t use defult VS build manager and has it own, it’s done diffrently then some outside tutorials how to use specific libaries do, so you always need to do it based on this tutorial. Most C++ liberies contains dll files (or source code to build them) and include files, so it usally should fit in to that tutorial, just palce things where they should be.
Now there other issue you will have, MySQL library free licence is GPL. which UE4 EULA prohibits to use with UE4 because GPL force software that use GPL library to also be GPL licenced which would make UE4 free redistributable without any money benefits to Epic. In order to use MySQL in commercial software (in this case also includes free closed source software) you need to buy commercial licence from Oracle:
I not sure if non-distributed software (which you would place just in your server) is effected by any of those licences. There tricks to avoid that, use of HTTP server as a database interface or some other medium that sperates MySQL software with UE4. Alternatively you can use SQLite, which UE4 has incomplete module:
Why, when a person asks something here, someone “omniscient” appears and begins to explain at length and broadly why something cannot be done and similar nonsense there, which is NOT AN ANSWER OR SOLUTION TO THE QUESTION !!!
If you want to chat, there are other places to do so! here people should help each other !!!