Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Creating a MySQL Database for Dedicated Server Use.

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.

Product Version: UE 4.11
more ▼

asked Apr 06 '16 at 01:49 AM in Everything Else

avatar image

25 2 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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:


I does not build by default... i'm not even sure if it builds at all as it seems it didn't been touched for long time, but it might be good start point if you plan to use SQLite

more ▼

answered Apr 06 '16 at 04:26 AM

avatar image

37.1k 935 172 1116

avatar image erebel55 Dec 21 '16 at 04:28 AM

I know this is old, but I think you may have misinterpreted MySQL's license. See the following: https://www.xaprb.com/blog/2009/02/17/when-are-you-required-to-have-a-commercial-mysql-license/

I am looking at either MySQL or PostgreSQL for my db backend. So I would love to hear your thoughts, as your post about the licensing worried me.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question