# how to connect mysql using c++

**URL:** <https://forums.unrealengine.com/t/how-to-connect-mysql-using-c/133860>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [November 22, 2019, 9:53am UTC](https://forums.unrealengine.com/t/how-to-connect-mysql-using-c/133860 "2019-11-22T09:53:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![progy85](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@progy85](https://forums.unrealengine.com/u/progy85)\
**Post date:** [November 22, 2019, 9:53am UTC](https://forums.unrealengine.com/t/how-to-connect-mysql-using-c/133860/1 "2019-11-22T09:53:25Z")

</div>

hi,

I want to connect mysql from ue4 c++ but in my c++ console application works,

in my unreal c++ i cnanot add reference:

Cannot open #include \<mysql.h\>

Thanks for help.

---

<div class="post-metadata">

**Author:** ![progy85](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@progy85](https://forums.unrealengine.com/u/progy85)\
**Post date:** [November 23, 2019, 11:17am UTC](https://forums.unrealengine.com/t/how-to-connect-mysql-using-c/133860/2 "2019-11-23T11:17:32Z")

</div>

Hi,

I have tried with blueprint, but I don’t have plugin for Mysql. I have only 4. Link: [mysqlue4 — ImgBB](https://ibb.co/vmYRT0S)

I tried to use: [GitHub - KhArtNJava/MySQLConnectorUE4Plugin: MySQL Database Connector Plugin for Unreal Engine 4\</titl](https://github.com/KhArtNJava/MySQLConnectorUE4Plugin)

but after want to click on generate Visual Studio Files, not possible rebuild then I tried with c++ rebuild and I goT Severity Code Description Project File Line Suppression State  
Error CS1729 ‘UnrealBuildTool.ModuleRules’ does not contain a constructor that takes 0 arguments MyProject11 c:\Users\Ryzen\Documents\Unreal Projects\MyProject11\Plugins\MySQLConnectorUE4Plugin\Source\MySQLConnectorUE4Plugin\MySQLConnectorUE4Plugin.Build.cs 6

I used UE 4.23 version
