Reaper-X » Guide » How To » Software » Tutorials » Windows » MySQL Installation and Configuration – Setting up Private WoW Server

MySQL Installation and Configuration – Setting up Private WoW Server

This is the first part of the Creating your own World of Warcraft Server using Mangos

  1. The First part is all about Installing and Configuring MySQL on your Windows Machine
  2. The Second part is about Configuring the WoW Mangos itself
  3. The Third part is all about Setting up Private WOW Server for Lan Party
  4. The Fourth part is all about Installing and Setting up Apache Webserver with PHP

Since i’m still getting lots of email asking me on how to set up a private wow server using mangos and including from the comments i received on my previous guide and that’s including here. I’ve decided that it’s best for me to explain it again but this time i’m going to use image instead of text only (previously someone ask me to write guide using images so here goes the guide) btw i had to set up virtual machine just to wrote this guide lol

Also i’d like to say many thanks to all the site visitors and to all who leave comments on this site especially at my wow mangos guide because your suggestion helps me to make this site better

Note : Since there are lots of images used, i think it’s better if i split this guide in two part. And at this part, i’m going to tell you how to install and configure mysql

As a sidenote, you can also use mysql for many things as well instead of just as WoW Private Server only. This means this is a general purpose mysql installation

Okay without further ado, let’s start the guide :

Requirement :

At the time i wrote this, the latest stable mysql version is MySQL 5 Community Edition

And don’t forget to download the 40 MB MySQL (Full MySQL) instead of the small version ;)

Installing MySQL :

After you’ve downloaded and saved the MySQL Setup into your harddrive, run it and choose Custom Installation and continue until this part and adjust it according to image below

Feel Free to install the documentation if you want it

And choose to install it

Please remember where you've installed the mysql program

Feel free to register with mysql.com although it does not have anything to do with your mysql installation. I put this, because some people think they need to register with MySQL.com first in order to use mysql program on their computer

You can register with mysql.com but it doesnt have anything to do with your mysql installation

After finished with the previous step, choose to configure mysql now (it’ll automaticaly run the mysql server instance config wizard)

It's better if you configure it now ;-)

That’s it for the installation process, now we need to configure it

Configuring MySQL :

If at the previous step you choose to configure it now, you’ll get below screen … or if you did not choose to configure it now, you can run it using the mysql server instance config wizard shortcut from the start menu

Choose Detailed Configuration

and then

Choose the Developer Machine

and then choose the Multifunctional Database

Choosing multifunctional db

And now you need to set up a directory where the InnoDB data shgould be saved (it’ll be created automatically if the directory does not exist so you do not have to worry about creating it first)

In this example the InnoDB directory located at C:\Mysql InnoDB Datafiles

Setting up the innodb data directory

As for the next step, you can adjust maximum concurrent connection depend on your need but most of the time you do not need to set the value to high unless you’re planning on creating public server and you have busy server (if you do this you already violated Mangos Terms of Use)

Setting up maximum concurrent connection

As for the next step you need to configure on what port should mysql listen to incoming connection (default is port 3306) and it’d be better if you do not change it (you do not need to worry about security because by default root account can only be accessed from local machine or in the other words from your own computer)

MySQL-Config-Wizard-6

Now you need to configure the default charset mysql should use. In this example i’m using UTF8

Choosing mysql default charset

This is the most important steps because if you forget to check the Include BIN Directory in PATH you need to start all over the mysql configuration process again (or you can edit your windows environment variable manually)

Btw this is one of the many problems many people had before (to those who’s allowed me to connect to their computer via remote assistance know this) … it is the Command Not found / Not Recognized error message from the command prompt ;)

Adjusting MySQL Listen port

Now here goes another important part, the root password. And you need to remember it or else you will need to reset your mysql root password. Also keep the enable root access from remote machines unchecked as security purpose

Note : This is different that mysql.com account if you decided to register with them or already registered with them

Setting up root password

Now you just need to continue and let the instance config wizard do the rest for you and you’ve finished installing mysql on your computer :D

And now we need to make sure MySQL already running and can be accessed directly from the command prompt … so open the command prompt by typing CMD in the run command

  1. Start Menu
  2. Run
  3. type CMD

or

  1. Start Menu
  2. Accessories
  3. Command Prompt

and then type like below image (when prompted for password, type your root password)

Testing mysql if it's working or not

If you can type the above command without problem, this means you just configured mysql to work properly on your computer … congrats :D

as for the next part, i’m going to write about Configuring the Mangos itself … stay tune :)

Note : This is a quick and dirty installation, i didn’t write about mysql query cache and any other optimization related configuration. So you’ll need to play around with it by yourself :)

Leave a Comment

Comments Navigation 1 2 3 4 ... 8
  1. Bernardo said Sep 30, 2007 at 5:28 am

    Thank you man! This tutorial is awsome, i really appreciated that.

  2. Hellboy said Sep 27, 2007 at 4:31 am

    Hi @ all!! This question may seem a bit strange, but when “MySQL Server Instance Configuration Wizard” ask for the root password, i donno what to type in? Which password is it i have to enter? Or, where can i find it?

  3. TBSKira said Sep 22, 2007 at 7:54 pm

    OK so I got my server running and I can login on the same computer as the server. But when I try to login in from another computer on my network it goes to logging into the server. Then it just loops back to the realm list

    My client version is 2.1.3 (6898)…and the mangos version is unknown.

    Help would be greatly appreciated.

    ~TBSKira~

  4. Reaper-X said Sep 21, 2007 at 6:47 am

    # Neo

    Unfortunately i haven’t tried using Vista yet :( … so i can’t give anymore info about it

    # Kris

    Just in case you didn’t notice, i just posted my own compiled mangos, for more info just click here

  5. kris said Sep 21, 2007 at 6:01 am

    can any1 tell me where i download mangos from?

  6. Neo said Sep 20, 2007 at 9:53 pm

    If i do PATH=C:\Program Files\MySQL\MySQL Server 5.0\bin
    it says:
    Too many parameters.
    if i do mysql -u root -p then still same error.

    I checked system variables and Path is there.

    Any more ideas?
    I got Vista

  7. Reaper-X said Sep 20, 2007 at 3:29 am

    I assume that you’re installing mysql to it’s default path

    now just you need to type this from the command prompt

    PATH=C:\Program Files\MySQL\MySQL Server 5.0\bin

    and then type mysql -u root -p

    NOTE : The above is just a temporary solution which mean you’ll need to retype PATH whenever you close the command prompt window

    To make it permanent, use below instruction

    and to make sure mysql already written the BIN path into your windows directory

    open System Properties, then go to advanced tab, open the Environment Variables and look under your system Variables for :

    PATH

    and then see if mysql bin directory is listed there

    If it’s not there, add the mysql bin directory manually

  8. Neo said Sep 20, 2007 at 2:43 am

    I dont know why i got that recognize error im 100000% sure i checked Include BIN Directory in PATH.
    I configured again and checked it.
    still the recognize error

  9. Trevor said Sep 19, 2007 at 1:24 pm

    I am getting the 1045 error but when I cmd prompt it and put in the password I installed it with it works ie. mysql -u root -p gives me the prompt for password I use my password and all works but the end of the install still gives the error.

  10. Neo said Sep 18, 2007 at 9:56 pm

    Yes i get an error then.

    MYSQL am not recognized as an internal or external task, program or batchbestand

    I translated it with a program maybe some words are not rlly good( im not english )

    is it also normal in mangos everything closes instantly after i pressed.
    and the other buttons al go to a non existing website?

  11. Reaper-X said Sep 18, 2007 at 9:41 pm

    # Neo

    Did you receive any error message when typing mysql -u root -p ?

    and by default mangos is going to make a beep noise when launched, but if you don’t like it you can change the mangosd.conf (configuration file) so it doesn’t make a loud beep noise when started

  12. Neo said Sep 18, 2007 at 9:36 pm

    since if i press start apache & SQL on MaNGOS
    i get a loud beep noise and the window closes

  13. Neo said Sep 18, 2007 at 9:26 pm

    But in command prompt
    if i type
    mysql -u root -p nothing happens
    cant enter my pass..

    Is it working or not?

  14. Neo said Sep 18, 2007 at 9:09 pm

  15. Neo said Sep 18, 2007 at 9:08 pm

    Deleted all
    Process closed
    Deleted Amrican93 repack(to make priv server but never worked for me)
    Installing
    Configuring
    Setting Password (i wont forget i use it for everything)
    Executing…

    YES
    It works
    never been so far now..
    Thanx Reaper u rock!

  16. Reaper-X said Sep 18, 2007 at 8:52 pm

    to make thing easier, uninstall and then delete your mysql installation directory (default location can be found at)

    C:\program files\mysql

    and then reinstall mysql again

    also if you previosly had mysql installed from any other program (if you’re using WoW Repack from somewhere that includes everything), make sure that mysql process is not running

    you can check if the mysql process is running or not by looking for mysqld process via task manager

  17. Neo said Sep 18, 2007 at 8:47 pm

    Only thing i can do is retry or skip >.>

  18. Reaper-X said Sep 18, 2007 at 8:44 pm

    Error 1045 / Access Denied message mean (in your case), you’re not supplying the correct password for the root username

    to fix it … simply use the correct password for the root username

    the default password for root (if you haven’t changed it) is blank … or in other words without any password

  19. Neo said Sep 18, 2007 at 8:27 pm

    what the fak
    how much errors you can get
    now i got 1045 error
    acces denied for user ‘root@localhost

    i already did everything with port 3306
    pls what to do now ?

  20. Neo said Sep 18, 2007 at 8:02 pm

    I cant believe it.. again i only get that dam lil blue box!

  21. Neo said Sep 18, 2007 at 7:28 pm

    It works now, thanks to ur link above guess i wasnt downloadign good one ;S

  22. Neo said Sep 18, 2007 at 7:23 pm

    hey,
    when i open Server instance config i get a lil blue screen and then nothing happens ?
    whats wrong?

  23. Reaper-X said Sep 11, 2007 at 1:10 pm

    Direct Link to mysql 5.0.45 win32 version :)

    click here

  24. Vorpalwind said Sep 11, 2007 at 7:13 am

    I can’t even find a MySQL to dl! I found one for a mac computer but nothing else. Did they stop hosting it? If they did is it possible still to get ahold of it for free?

  25. Reaper-X said Sep 9, 2007 at 11:33 am

    # Pool

    Argh, It was all going so well until i got into the game. I was unable to create a character due to SQL ERROR: Unknown column ‘pending_honor’ in field list

    it seems that you’re using patched mangos that is using honor system, to fix it you need to execute the sql file included with that release

  26. Reaper-X said Sep 9, 2007 at 11:31 am

    # Goblisleez

    just in case you want to import the scriptdev2 sql file, you can type this at the command prompt

    mysql -u root -p -D mangos < scriptdev2.sql

    and if you take a look inside the scriptdev2.sql file, actually it’s just updating the creature_template table to make the monster cast spells

  27. Goblisleez said Sep 9, 2007 at 7:32 am

    Well .. after a few hours of playin around in the mangos database .. i discovered that a small amount of creatures do cast spells. Seems that most creatures in the database do not have a script attactched to them.

    Heres what i did …

    Charlga Razorflank eg : had no script or spell casting caps enabled (which we know is rediculous as in the real version he does cast things).

    I added the line “generic_creature” to scripts (as other creatures that do cast have this script) and aded 2 spells into spell1 and spell2 (spells were of my choice). Whoila .. Razorflank now casts spells.

    Im just curious .. is there a way to find more scripts .. seems it would take a millenium to hand edit the whole damn database O.o …

    Anyways , just wanted to say once more … great article Reaper .. helped alot … and if u do know of anything about these scripts .. would be appreciated.

    TY :D

  28. Goblisleez said Sep 9, 2007 at 5:54 am

    As far as gettin stuck at the Service Started status …. i had this happen once .. i just uninstalled MySQL and manually removed all left over traces from the program files dir… as well as the InnoDB folder … delete it all and freshly install it. Worked for me. Just make sure you uninstall and remove every last left over peice of data from yer machine.

  29. Goblisleez said Sep 9, 2007 at 5:11 am

    Ok , well i have studied a bit on this thing called ScriptDev and i have the sql files … i am not sure i understand how to import them into the exsisting mangos database … the only option i see is to restore from SQL … i have done this and it seemed to affect nothing … maybe it has added speech abilities to the silvermoon guards … but otherwise , not one mob casts any spells .. no boss’s either … i dont understand. Any ideas?

  30. Goblisleez said Sep 9, 2007 at 1:22 am

    Yo reaper , awesome stuff here … one thing … Have you heard about anything or way to initiate a mob AI to the data …. cause i have tried about 5 different DB’s and not one of them has workin spell casting mobs…. all mobs in all DB’s i have tried just physically attack. Im searchin around right now … but if u know of anything , be appreciated m8.

  31. pool said Sep 9, 2007 at 12:02 am

    Argh, It was all going so well until i got into the game. I was unable to create a character due to SQL ERROR: Unknown column ‘pending_honor’ in ‘field list’

    Any suggestions?

  32. SeBasTian:) said Sep 8, 2007 at 10:33 pm

    I pressed execute and its currently stuck on “Start Serivice” please can i get some assistance?

  33. SeBasTian:) said Sep 8, 2007 at 10:21 pm

    Hello. Well i downloaded the MySQL, but now im currently stuck at “Start Service” its not going farther then that. The buttons are greyed out also, idk what to do!

  34. Reaper-X said Sep 8, 2007 at 9:47 pm

    Actually you can install any version that fit you best (or any version that is available for download from mysql website) :)

    as a side note, i’ve tested mangos with MySQL 4.1.x , and mysql 5.0.xx without problem

  35. SeBasTian:) said Sep 8, 2007 at 9:40 pm

    OK Im just wondering what would happen if i get a higher version of MySQL?

  36. Reaper-X said Sep 4, 2007 at 2:15 pm

  37. Stabby said Sep 4, 2007 at 8:01 am

    I got “Cannot create Windows service for MySQL. Error:0″ which stopes at “Start service” like everyone else. E-mail me at meintein@earthlink.net with details on how to fix this ASAP.

  38. cory said Sep 3, 2007 at 1:21 am

    help,, iit always stops at the 3rd spot and says error 0,, help plz

  39. I Can't start service said Sep 1, 2007 at 3:04 pm

    When I execute it always stops at Start Service and
    says cannot create windows service for MySQL. error:0
    i tried to uninstall the Program but it doesn’t help
    please some1 can help me?

  40. friesner1 said Sep 1, 2007 at 2:12 pm

    Coming from a previous post on the older guide in which Reaper-X asked me if I had the realm loop problem…

    This post should go here, as I followed this guide.

    I’m not sure what the realm loop problem is exactly…because it connects to the realm and sits there and displays the message “Retrieving Character List” and gives me the cancel option. It just sits there.

    I followed your guide to the letter with no problems and I know my version of mangos is compatible because I checked that before I started the installation (Revision 4344 which is supposed to be able to run TBC 2.1.3 which is what I have installed). I also got the correct SDB files from the link you provided.

  41. jamie said Aug 31, 2007 at 8:41 am

    hey when i try to do the command promp thing it says it’s not recognized

    • Reaper-X said Aug 31, 2007 at 10:30 am

      you just need to run the mysql server instance config wizard and don’t forget to add mysql bin directory to windows path when asked :)

  42. Jake said Aug 29, 2007 at 6:12 am

    btw do u need mySql to run ur own private server?

    • Reaper-X said Aug 29, 2007 at 6:43 pm

      of course :) because that’s where your character data, game database (weapon, warp, etc), and your realm information stored

  43. Jake said Aug 29, 2007 at 6:11 am

    when i go to enter my password it makes a loud beep noise and says its wrong! i already got a account, help?

  44. Stephen said Aug 29, 2007 at 4:41 am

    Ok got it all up and running. It’s working well although the following bugs I was wondering if anyone could help me with:

    1) Can’t use any of the chat channels at all and nothing is displayed in the chat windown when I type something.

    2) XP bar missing.

    3) Most importantly my cash is set to 0 copper and no matter what cash I add or stuff I sell I do not receive the money.

    4) Grsphical glitches like some models are hold little blue and white boxes.

    I hope you can assist in this as right now I possess 5/5 Dual Wield Specialisation but unfortunately my whole skill page is empty, which means I cannot dual wield at all, despite specialising in it. Wierd huh? Help peoples!!

    • Reaper-X said Aug 29, 2007 at 6:40 pm

      from your description, it seems that the mangos you’re using is not compatible with your WoW installation. I can only suggest you to get another mangos revision (preferably newer release, or the latest one that is compatible with the full SDB you’re going to use)

      as a note, if you look at my previous wow mangos screenshot, you’ll see that im using Dual Weapon (i think the weapon name is DeathBringer or something, IIRC) because im just guessing weapon name lol

      and im not experiencing chat, or money issue as you described even with the old mangos revision (3462) for wow classic only

  45. joe said Aug 28, 2007 at 2:55 am

    uh and i tried doing it in command prompt, i enter he password and it still gives the erro, btw i already have mangos downloaded and my server is up and runnin g, i am just using mysql to get my friends online

  46. joe said Aug 28, 2007 at 2:54 am

    uh, error 1045, i dont even have a firewall, i dunno what is up

  47. mike said Aug 27, 2007 at 3:54 am

    i seem to be having the same problem as most people regarding the startup services but i have yet to see a fix on here….here is the error i get…

    InnoDB: Error: log file .\ib_logfile0 is of different size 0 177209344 bytes
    InnoDB: than specified in the .cnf file 0 25165824 bytes!
    070826 16:50:16 [ERROR] Default storage engine (InnoDB) is not available
    070826 16:50:16 [ERROR] Aborting

    …i would love to get past this error so i can run into another one

    • Reaper-X said Aug 27, 2007 at 11:34 am

      that error message means, the InnoDB Storage / Logsize has different size compared to the specified value in your my.cnf

      the easiest way to fix it, delete the ib_logfile0,ib_logfile1,etc from your mysql data directory and restart the mysql service to force mysql to recreate the data again

      or you can also choose to disable InnoDB completely if you aren’t going to use it by :

      1. adding skip-innodb into your my.cnf
      2. comment (#) all innodb configuration in your my.cnf
      3. restart mysql

  48. Kyle said Aug 25, 2007 at 7:20 am

    Hey, I followed all the steps before and it work. So i switched computers on my LAN becuase this one ran better. Now when i follow the steps I get to the Execute part of the Instance Configure Wizard and it gets to the Apply Security Settings and it give me this message:
    Error Nr. 2003
    Can’t connect to MySQL server on “localhost” (10061)
    I opened the port and everything but it just wont work. Please help me
    kylemcbr@gmial.com

    • Reaper-X said Aug 25, 2007 at 12:27 pm

      Have you tried checking the process list (Task Manager -> Process List) and see if the mysqld process is listed there ?

  49. Pureblood said Aug 23, 2007 at 10:08 pm

    Im sorry to make this question. Maybe you already said somewhere but i dont see it…
    If i’m going to do the classic wow server… i need to install wow without patchs? or up to what patch?
    same with TBC server, till what patch?

    Im so sorry but i dont have a idea :(

  50. marcus... said Aug 20, 2007 at 12:17 am

    hmm when i klick execute nothing happend and the program aint answer what shall i do!?

Comments Navigation 1 2 3 4 ... 8

Trackbacks/Pingbacks

CommentLeave a response

Please read our comment policy | XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>