I am trying to get familiar with C++ inside Unreal, but I only have limited programming experience in general. I am trying to achieve the same thing that I accomplished in a simple C++ application using Visual Studio.
In this case, I am trying to connect to a MySQL database from my Unreal project. I am aware that connecting directly to a database from a client application is a terrible idea in general, and a layer that communicates between the client and the database should be used, but I only want to establish a direct connection first to experiment a bit.
In a Visual Studio project, I had to download the C++ Connector (https://dev.mysql.com/downloads/connector/cpp/1.1.html) then choose Tools->Connect To Database and then set a few things. After that, I could use code like this:
String^ constring = L"datasource=127.0.0.1;port=1234;username=AdminUser;password=Password"; MySqlConnection^ conDataBase = gcnew MySqlConnection(constring); MySqlCommand^ cmdDataBase = gcnew MySqlCommand("TEST COMMAND;", conDataBase); MySqlDataReader^ myReader;
Now I imagine this is not the case with Unreal, and I have to do something different. I spent several hours trying to find a solution but I could only find anything regarding the standard method (Client<->Server<->Database). Any ideas about how should I get started with this?
Any help would be really appreciated.