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 5 6 ... 8
  1. Magnesium said Jan 5, 2008 at 11:04 pm

  2. Reaper-X said Jan 5, 2008 at 10:31 pm

    # CoolZero

    could you tell me what is the error message ? (look at the .err file inside your mysql directory) :)

    # Cody

    it seems that your message was cut off .. could you repost it again ?

    # Magnesium

    Do you mean my previous old wow mangos installation guide (before creating my own repack) ? or the recent one (i’d appreciate any input) :)

  3. Magnesium said Jan 5, 2008 at 9:46 pm

    UCD and TCP – sorry, my mistage again…

  4. Magnesium said Jan 5, 2008 at 9:39 pm

    no windows path needed on Vista* – made a typo

  5. Magnesium said Jan 5, 2008 at 9:34 pm

    now,well i pressed the wrong button:
    so, install MySQL, and one thing more: UNINSTALL EVERY PACKAGE OR SQL EDIOR B4 INSTALLING MYSQL!!!!!!

    sir.mihkel@hot.ee 4 problems, ima crazy man with a crazy talk…

  6. Magnesium said Jan 5, 2008 at 9:32 pm

    Ugh, Reaper, mby you should change the whole guide:
    h t t p : / / w w w . g a m e r z p l a n e t . n e t / f o r u m s /wow-emu/213482-help-how-make-your-own-server-how-make-public-add-items-etc.html That works, BUT INSTALL MYSQL BY REAPERS WAY(but now windows path needed on vista…)

  7. Magnesium said Jan 5, 2008 at 9:26 pm

    Well, yeah, um i kinda have a problem –
    Im useing Ascent install, and that has worked the best yet( i have got into the game, others logged in) BUT here’s the story:
    1st- i got error of: Error 0(opened ports) – FIXED
    2nd- ive got an error of 2003 – cant connect (10061) I have taken down( yes forgot : runnin’ on Vista Home Basic.) windows firewall and bitdefender v10 but i reallly cant connect. + there are no processes of MySQL or services exept of the conf. wizard. i hope you understand.
    1 mroe thing: create both ports: UDP and TDP ;) shee ya

  8. Aaron said Jan 3, 2008 at 7:05 am

    guh(im Not the other aaron) but It says it cant find 001_33_39.vmdir when i start mangosd yet i can find the file easily! help!,
    this might help: the same error as someone else .while running the mangosd.exe.
    it couldnt find me the “001_33_39.vmdir” file
    I checked and the file is in the right place

  9. rontzy said Jan 2, 2008 at 8:15 pm

    It s Hard to create your own serve!!!!:(

  10. Cody said Jan 2, 2008 at 6:55 am

    Hey, having a little trouble i cant get my command
    propt to look like yours it just wont let me, instead of it saying C:\Documents and Settings\beta>mysql it says C:\Documents and Settings\jeff….PLZ HELP ME REAPER!:)

  11. CoolZero said Dec 31, 2007 at 4:38 am

    hey please help me with instalation i do all and come to excute it stop on start sevice please help me

  12. Farule said Dec 30, 2007 at 12:39 pm

    Hey just wanted to say thanks. You helped me get it running :). Deleting those folders helped me out a lot. Now for the next step.

  13. Mod said Dec 29, 2007 at 4:05 am

    i’m also getting the error 1045
    access denied for ‘root’@’localhost’ (using password:YES)
    i’ve made the port 3306 an exception on my firewall and even tried turning off the firewall, but it still comes up with the same thing

  14. Light said Dec 26, 2007 at 12:59 am

    each time im checking if i did it right on cmd is saying : ERROR 1045 access denied what to do?

  15. shadow22 said Dec 14, 2007 at 12:18 pm

    hey i get in the .err file and says
    071213 22:17:14 [ERROR] Default storage engine (InnoDB) is not available
    071213 22:17:14 [ERROR] Aborting

    071213 22:17:14 [Note] C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt: Shutdown complete

  16. sthbrian said Dec 14, 2007 at 9:33 am

    uummmm, can u assist me everytime i download it it never takes me to that screen it always comes up with modify repair or remove, never the custon download, please assist. Am i not downloading the right thing or what? plese respond

  17. TOTALY STUCKED! said Dec 13, 2007 at 7:58 pm

    After all the setup, i get this error:

    The security settings could not be applied to the database becouse the connection has dailed with the following error.

    Error Nr. 2003
    Can’t connect to MySQL server on ‘localhost’ (10061)

    If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. Otherwise no cient application can connect to the server after you have opened the port please press [Retry] to apply security settings.

    If you are re-installing after you just uninstalled the MySQL server please note that the data directory was not removed automatically. Therefore the old password from last installation is still needed to connect to the server. In this case please select skip now and re-run the Configuration Wizard from the start menu.

    I turned off my “Firewall” and my antivirus software (Kaspersky Internet Security) which has his own firewall. I cheked ports for both firewalls, and they were open (but im not totaly sure) I tryed uninstall it, and delete the folder. I reinstalled and used my password from last istallation. Btw this isint my first time installing this program. I think from last istallations, the port 3306 is still in use but i have no idea where it could be.

    I BEG YOU! HELP ME REAPER!

  18. helper said Dec 12, 2007 at 7:24 pm

    ppl with error 0 !!
    scroll up, reaper already solved that problem
    (lol)

  19. Void87 said Dec 9, 2007 at 11:02 pm

    Please help, I’m getting error 0 windows service thing… >_>
    I don’t know how to fix it…
    reif.larsen@gmail.com

  20. hunt said Dec 6, 2007 at 10:49 am

    getting it to work on vista isn’t that differnt, CMD was where it changed for me.

  21. mister said Nov 27, 2007 at 8:28 am

    I’m sorry to err triple post, but I believe smething might be wrong w/ my MySQL I’ve tried everything that I’ve seen it gets to teh execute page and has 2 checks then appears and X and it says Could not start the service MySQL. Error: O and everything else works including mangosd.exe and realmmd.exe If you have any ideas about what to do please tell me I have reinstalled about 3-4 times ><

  22. mister said Nov 27, 2007 at 4:00 am

    MySQL will not start service*

  23. mister said Nov 27, 2007 at 3:59 am

    MyDQL will not start the service for some reason any ideas why?

  24. mister said Nov 27, 2007 at 3:48 am

    xenon are you typing in the whole command? including the mysql

  25. Xenon said Nov 24, 2007 at 12:40 pm

    Ok i got the configuration to work now, but when i go to the cmd it says
    “‘-u’ is not recognized as an internal or external command, operable program or batch file.”

    Please help me

  26. Xenon said Nov 24, 2007 at 11:43 am

    When i was at the last part of the configuration i got this error:
    “The security settings could not be applied.
    Error Number 2003.
    Can’t connect to MySQL server on ‘localhost’(10061)”
    What do i do to fix this?

  27. Flavietto said Nov 24, 2007 at 5:36 am

    I’ve a problem… When i install the MySQL, in the custom install there are only MySQL Server (required 22mb), client programs (28kb) and include files/lib files “deactivated”. Where’s “MySQL Install Manager”?

    Thx you

  28. Edward said Nov 19, 2007 at 12:09 pm

    Ok thanks for your help.Fixed my own problem :)

  29. gonza234 said Nov 19, 2007 at 12:09 am

    I ve installed mysql but when i run it, it doesnt apper the image u pposted above, i try to write commands, but they doesnt work

  30. Ozzy said Nov 16, 2007 at 9:36 pm

    Hey, I’m experiencing difficulties with my mysql i can’t get the program to connect to the port(3306). first i made an exception, didn’t work, closed the firewall down, not working. what did i do wrong and how do i fix it
    thx,

    btw great guide

  31. Edward said Nov 15, 2007 at 10:46 am

  32. Reaper-X said Nov 14, 2007 at 5:48 pm

    # Chris

    Could you restart the mysql service by typing :

    net stop mysql
    net start mysql

    from the command prompt ? and see if you got any error message or not

    # Jeff

    No, root password is actually typed when you install mysql to your computer not from other website

    btw could you try restarting the mysql service ?

    # Edward

    it seems that you’re using my mangos mod, btw are doing fresh installation or restoring / upgrading from old version ?

    Because if you choose to fresh install, you won’t be seeing that message since the mangosmod username automatically created in the installation process

  33. Edward said Nov 14, 2007 at 3:23 pm

    Hi Great Reaper-X your tutorial is awesome,but I met a problem.

    Everything is fine except the last step where you launch magosd.exe and realmd.exe.

    I get “Could not connect to MySQL database at 127.0.0.1: Acess Denied for user ‘mangosmod’@'localhost’ (using password: YES)for realmd.exe and the configuration for the bin works.

  34. Jeff said Nov 13, 2007 at 2:12 am

    Do you put anything in for the Root password on the last step? i followed the steps above but i keep getting the Error: 0. Do i need to sign up on another website to get the root pass or somthing?

  35. Chris said Nov 11, 2007 at 7:34 am

    hey, love the work btw..

    worked fine for a day, had massive lags every hour or 2 that lasted around 10 mins…
    during one of these, i kinda switched the pc off by the socket.. got it mixed up with the other socket.. >.<

    and now when i try to run again, nothing works, i tried command prompt..
    mysql -u root -p
    then enter password, and…
    lost connection to mysql server at ‘reading initial communication packet’ system error: 2

  36. Jeff said Nov 10, 2007 at 6:49 am

    woops, shoulda read ahead. Nvm. >.<

  37. Jeff said Nov 10, 2007 at 6:46 am

    Hey, when i was trying to download MySQL, i got all the way to the part where you hit “execute” and then it does its Processing Config. It goes through those 4 check points, but mine Reads (The Service could not be started. Error:0) and wont let me complete it. If anyone has an idea, thanks.

  38. kiefer said Nov 6, 2007 at 11:39 am

    SO i have windows Vista and im not sure if this program will even work with windows vista… in other words i got to the point to where u have to type in the comand prompt and i cant seem to get it.

  39. Reaper-X said Nov 2, 2007 at 7:59 pm

    Whoa .. calm down ;) you know that i’m the only person that manage this site, and if there is a lot of question asked simultaneously … there’s 99% chance i will miss that question :)

    btw to those who’s experiencing mysql error 0 try doing this :

    1. Make sure there’s no mysql process in task manager process list tab (if you use repack that include mysql)

    2. If you still have mysql installed, try running the server instance config wizard and choose to REMOVE THE INSTANCE

    3. Now exit from server instance config wizard, and then go into add/remove program and uninstall MySQL

    4. Now delete everything from the previous mysql installation directory (default C:\program files\mysql)

    5. Reinstall mysql once again

    To those who has uninstalled MySQL and still getting the same mysql error 0 message :

    1. open command prompt and type like below :

    services.msc

    and it’ll open another window, and see if there’s mysql service listed there and Make note of that service name (the default service name is MySQL)

    2. Now close the services window

    3. at the command prompt type :

    sc delete MySQL

    or adjust the mysql service name as shown previously

    and then make sure that the mysql service has been deleted, if it’s not you’ll need to restart your computer

    4. Uninstall MySQL via add remove program

    5. Delete everything from your mysql installation directory

    6. reinstall mysql

    that’s it :)

  40. i hate u said Nov 2, 2007 at 5:11 pm

    reaper u ***hole why cant u just tell us how to fix that fuckin error 0 thing ?!

  41. Bongo said Oct 31, 2007 at 1:02 pm

    Alex, welcome to the club :D
    Its not only you, we are not the only… Its a mass problem but nowhere i can find answer… :)

  42. Alex said Oct 31, 2007 at 5:42 am

  43. Alex said Oct 31, 2007 at 4:36 am

    Oki know ill sound like a looser but anyways i cant get mySQL started, it’s downloaded but but i cant run it like it says in the guild so can you help me to fidn where to go

  44. furel said Oct 30, 2007 at 7:24 pm

    071030 14:02:40 InnoDB: Operating system error number 123 in a file operation.
    InnoDB: Some operating system error numbers are described at
    InnoDB: http://dev.mysql.com/doc/refman/5.1/en/operating-system-error-codes.html
    InnoDB: File name C:\C:\Mysql InnoDB Datafiles\ibdata1
    InnoDB: File operation call: ‘create’.
    InnoDB: Cannot continue operation.

    i just dont get a thing can someone plz explane me how to get pass start service if i have error:0

  45. LnNF said Oct 29, 2007 at 5:21 am

    What I did last time was when I deleted the folder, I didn’t remove it first. Opened the Task Manager and ended the process of mysql-nt, if it’s not there don’t worry about it. I had my port opened previously and I removed MySQL with add/remove programs and THEN deleted the folder of MySQL and the InnoDB, and installed it freshly and it worked.

  46. Alex said Oct 28, 2007 at 8:24 pm

    hey , how did u fix your problem caus i got same problem and cant fix it

  47. Same Problem said Oct 28, 2007 at 4:47 pm

    I checked out what your answers to all the others said with error 0; error 1045 but nothing has helped,, Should add our problems into your tutorial its piSSSing me off =[

  48. haven said Oct 28, 2007 at 4:45 pm

    Man i got no hope of ever doing this,, I get through error 0; then comes up with the error 1045.. Do help

  49. LnNF said Oct 27, 2007 at 4:38 am

    Woot I got it!!! xD hellz yay

  50. LnNF said Oct 26, 2007 at 7:31 am

    I got by the error: 0 thing, I didn’t know I had to specify the InnoDB everytime :P I ran through the config again, but now I’m stuck on the error: 1045 about a port thing n firewalls, I’ve tried putting my firewall down and opening the port (I think I opened it right??) but it still does the same 1045 error’zorz >.<

Comments Navigation 1 2 3 4 5 6 ... 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>