Where The Dead Will Rise
It is currently June 27th, 2022, 10:47 pm

All times are UTC - 5 hours [ DST ]

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to compile Trinity
PostPosted: July 22nd, 2016, 9:25 am 
Site Admin
Site Admin
User avatar
 Personal album  WWW  ICQ  YIM  Profile

Joined: April 19th, 2006, 8:45 am
Posts: 744
Location: Indiana
Highscores: 173
Gender: Male
Processor with SSE2 support
Boost 1.59
MySQL ≥ 5.1.0
OpenSSL ≥ 1.0.0
CMake ≥ 3.3.2
MS Visual Studio (Community) ≥ 12 (2013) Update 4 (Desktop)

Git Extensions
Includes Git, MySYSGit, and KDiff - be sure to install all three
View this thread for important details on how to install Git for best results. Default install options for KDiff and MySYSGit are acceptable.
During Git installation - Adjusting your PATH environment. Pick "Run Git from the Windows Command Prompt".

Install the compiler/IDE Visual Studio Community 2013 with Update 5 or Visual Studio Community 2015
VERY IMPORTANT when installing Visual Studio 2015
MySQL Server Community Edition (Use the most recent 5.6.x version or 5.5 with mysql server configuration, DON'T use 5.7 version unless you know VERY WELL what are you doing, you will have issues with 5.7)
Download the Windows MSI Installer.
Scroll down to the bottom and click on "No thanks, just take me to the downloads!"
During MySQL Configuration, near the end of the installation process, create the user trinity with password trinity to match the trinity:trinity settings in the default server .conf files. Make sure that this user is set to have the DB Admin role and with Host type localhost instead of the defauilt <All Hosts (%)> because of the low security of the well known password "trinity".
When the installation is almost done, make sure "Launch the MySQL Instance Configuration Wizard" is checked, then click "Finish".
When the MySQL Instance Configuration Wizard launches, most default options are fine, but remember the username and password you use (root // whatever). You will need them to log into your chosen database management tool (below) in order to import SQL files later.

To test if MySQL is set up correctly, hit CTRL+ALT+DEL on your keyboard, enter the Task Manager, and select the "Services" tab. In the list of services you should see "MySQL" with a status of "Running".

Choose one of these database management tools:

mysql cli (Fastest (recomended since we use some very big files))

SQLYog Community Edition

HeidiSQL (Best for beginners)

MySQL Workbench (already installed if you chose to install full MySQL package)

Try connecting your MySQL instance that you installed above. Depending on the program, you may be looking for "Connect to Host" or "New Connection" or "Session Manager".

Create a new connection/session. The Hostname/IP address of "" or "localhost" is fine if you installed MySQL on the same computer that you installed HeidiSQL or SQLYog. Simply fill in your root // whatever password and you should now be able to connect to your database.NET Framework 3.5 or above (you should already have it via your Windows updates)
Download the prebuilt Windows Binary matching your platform
Visual Studio 2013
Recommended for 64bit: ... e/download
for 32bit: ... e/download
Visual Studio 2015
Recommended for 64bit: ... e/download
for 32bit: ... e/download
Install the package to the default location.
Add an environment variable to "System" variables named "BOOST_ROOT" pointing to your Boost installation directory, e.g "C:/local/boost_1_59_0".
(Make sure that it does not have a trailing slash. If you still get problems, add the same variable in the "USER" variables section too, like shown in the image below.)

Restart Cmake if it was already running
Download and install the Latest Release win32-x86.exe file, NEVER the RC (Release Candidate) versions.
“Visual Studio 12” is Microsoft Visual Studio 2013, or Visual C++ 12.0, or MSC 18.0 (confusing, right?) If I need to build for 64-bit, then I choose “Visual Studio 12 Win64” we recommend to compile all on 64 bits mode;
MySQL development files
These files are shipped with MySQL Server but to make it easier we packed the libs and include files for both 32 bits and 64 bits.
Extract the files to a known location, e.g, C:\MySQL, directory structure must be following: C:\MySQL\include and C:\MySQL\lib\debug (Move libmysql.dll and libmysql.lib there)

OpenSSL- Download the 64bit version. Or you can get both if you plan to compile both 32 and 64bit, they can coexist side by side.
Find the 64bit version by finding the latest Win64 OpenSSL that is NOT the "light" version.
Example: Win64 OpenSSL v1.0.1p
Find the 32bit version by finding the latest Win32 OpenSSL that is NOT the "light" version.
Example: Win32 OpenSSL v1.0.1p
Note #1: If you get a "Missing Microsoft Visual C++ 2008 Redistributables" error message while installing OpenSSL,
download the Microsoft Visual C++ 2008 Redistributable Package (x64) (1.7MB Installer) and install it.
If you need 32bit support, download and install the Microsoft Visual C++ 2008 Redistributable Package (x86) .

Note #2: While installing OpenSSL, choose The OpenSSL binaries (/bin) directory (NOT "The Windows system directory")
when given the choice on where to copy the OpenSSL DLLs. These DLLs will need to be located easily for Core Installation.


If you use different PCs to compile/run Trinity, install one of the following packages on your Server-PC to avoid missing dependencies (depending on your Visual Studio Version and your Server-PC Operating System)
Microsoft Visual C++ 2013 Redistributable Package
NOTE: Whatever you do you CAN'T run TrinityCore on Windows XP or Windows 2003.
This instruction supports Git Extensions only, but TortoiseGit is another viable option if you're comfortable with the process.


If you still have any problem, check:

Updating or starting with TrinityCore issues
Trouble with your TrinityCore Install / Readme 1st / FAQs


Reply with quote  

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2006, 2007, 2008 phpbb group  
Design By phpBB