# Can I use C++ to access a MySQL server?

**URL:** <https://forums.unrealengine.com/t/can-i-use-c-to-access-a-mysql-server/285276>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 7, 2014, 12:10pm UTC](https://forums.unrealengine.com/t/can-i-use-c-to-access-a-mysql-server/285276 "2014-06-07T12:10:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Belven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Belven](https://forums.unrealengine.com/u/Belven)\
**Post date:** [June 7, 2014, 12:10pm UTC](https://forums.unrealengine.com/t/can-i-use-c-to-access-a-mysql-server/285276/1 "2014-06-07T12:10:48Z")

</div>

I’ve got great experience with SQL and Java and I’ve used a SQL API for UE3 that linked to a MySQL Server.

But due to UE4 using c++ and visual studio is there a standard API or object I should use to connect to my Windows Azure Server, as I’m assuming there’s a easy method to achieve this?

I have all the code I used before as well so it should be an easy transition.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [June 7, 2014, 1:49pm UTC](https://forums.unrealengine.com/t/can-i-use-c-to-access-a-mysql-server/285276/2 "2014-06-07T13:49:57Z")

</div>

Standard UE4 APIs does not support any SQL protocols direclly, only some online subsystems which is Amazon, Facebook, SteamWorks etc. (to access this github link you need to be active subscriber and have github account tied with Unreal profile)

[https://github.com/EpicGames/UnrealEngine/tree/6147965f2f00f9241542c3db41c57f9f74f76b08/Engine/Source/Runtime/Online](https://github.com/EpicGames/UnrealEngine/tree/6147965f2f00f9241542c3db41c57f9f74f76b08/Engine/Source/Runtime/Online)

Other then hat you could use external liberies, problem is with UBT it little more complicated to include those to project

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

But considering it’s Microsoft you might try to include sql header file and try to use sql libs, maybe they will work ou of the box

---

<div class="post-metadata">

**Author:** ![Belven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Belven](https://forums.unrealengine.com/u/Belven)\
**Post date:** [June 7, 2014, 3:18pm UTC](https://forums.unrealengine.com/t/can-i-use-c-to-access-a-mysql-server/285276/3 "2014-06-07T15:18:11Z")

</div>

So basically they’ve overcomplicated it all and I have to spend most of my time changing their code. Thought a SQL object would be more widely used, oh well.

---

<div class="post-metadata">

**Author:** ![StuntThumper88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StuntThumper88](https://forums.unrealengine.com/u/StuntThumper88)\
**Post date:** [May 5, 2019, 8:54pm UTC](https://forums.unrealengine.com/t/can-i-use-c-to-access-a-mysql-server/285276/4 "2019-05-05T20:54:53Z")

</div>

This isn’t a free plugin thats only for dedicated server logic, but its solid and may save you a lot of time building it yourself. [Blueprint SQL/ORACLE/MySQL/ODBC Database Communicator in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/slug/sql-database-communicator)
