26-12-2006, 05:06 AM
First thing you must do is download MySQL 5.0 Community Server. It is free and pretty simple to install.
MySQL 5.0 Community Server
http://dev.mysql.com/downloads/mysql/5.0.html#downloads
Also to easily view and change your database I suggesting getting SQLyog Community Edition.
SQLyog Community Edition
http://www.webyog.com/en/downloads.php
(Make sure to get the free Community Edition.)
Also you need a connecter that your server will use to connect to the mysql server.
MySQL Connector/ODBC 3.51
http://dev.mysql.com/downloads/connector/odbc/3.51.html
Now Install MySQL 5.0 and then run the Server Instance Configuration Wizard.
Click Next until you see Detailed Configuration or Standard Configuration.
Choose Detailed Configuration and hit Next.
Most people should now select Developer Machine. As it says that is for people who will be running this on computers with other programs running. If you have a computer just for this then select Dedicated MySQL Server Machine. Click Next.
Next select Multifunctional Database and select Next.
Click "..." if you wish to select your Installation path or leave it alone if you want the default one. After you choose one select Next.
For the next one you should be fine selecting Decision Support (DSS)/OLAP. Which is for around 20 connections... that should be fine for most. Down the road if you need to change it up you can always do so easily. Click Next.
Select your port number next. I would leave it as 3306 unless you want to use another one for some reason. Select Next.
Select Standard Character Set and select Next.
Make sure its checked to Install as a Windows Service. This starts it up automatically when you start up your computer and is the easiest way to do so. Click Next.
Next you choose the Password for logging into your server. You will need this to login with SQLYog and for your server to connect to it so be sure to remember it. After you do so select Next.
after this select Next or Finish I forget to install it. It should run through with no problems and your MySQL is all set.
Next is sqlyog.
Install it. Now run it. Select the New tab.
For MySQL Host Adress enter localhost unless you have mysql on another pc and want to view the data from there. Then you would enter the IP adress of the computer with mysql on it.
Enter root for the username. Then enter the password you just chose.
For port enter 3306 unless you chose something else setting it up.
That should be fine then select Connect. If it asks to save it I would do so ... so that you dont have to enter all the information each time.
Now lets setup the database and tables and all that for Mirage Source.
Above the Query window click the button that is a green arrow with 2 files. It is called Execute Batch File.
Click "..." to browse. Go to your MS 3.0.7 folder and find mirage_online.sql. Choose that. Now click Execute.
Voila you have your database set up. Dont see it on the left side yet? Click F9 and that should refresh it. If you still dont see Mirage_Online on the side just simply close the program and reopen it. The database should be installed and you can now easily view your servers data.
Ok why not get the server to connect to the sql server we just set up now?
Go to your server source and open it. Go to modDatabase and at the top find...
keep in mind your password wont be ****. Change the password to whatever you selected and that should be all you have to. Of course unless you have the mysql on another pc or changed database name or anything like that. If so simply change those there.
If you havent already make sure to install MySQL ODBC 3.51 Driver. Its simple to do so. Now you can go start up your server. If it loads up with no problems Voila you are done. If not then you messed up somewhere along the way.
If you have trouble feel free to ask questions and I will help you the best I can.
GOOD LUCK!
MySQL 5.0 Community Server
http://dev.mysql.com/downloads/mysql/5.0.html#downloads
Also to easily view and change your database I suggesting getting SQLyog Community Edition.
SQLyog Community Edition
http://www.webyog.com/en/downloads.php
(Make sure to get the free Community Edition.)
Also you need a connecter that your server will use to connect to the mysql server.
MySQL Connector/ODBC 3.51
http://dev.mysql.com/downloads/connector/odbc/3.51.html
Now Install MySQL 5.0 and then run the Server Instance Configuration Wizard.
Click Next until you see Detailed Configuration or Standard Configuration.
Choose Detailed Configuration and hit Next.
Most people should now select Developer Machine. As it says that is for people who will be running this on computers with other programs running. If you have a computer just for this then select Dedicated MySQL Server Machine. Click Next.
Next select Multifunctional Database and select Next.
Click "..." if you wish to select your Installation path or leave it alone if you want the default one. After you choose one select Next.
For the next one you should be fine selecting Decision Support (DSS)/OLAP. Which is for around 20 connections... that should be fine for most. Down the road if you need to change it up you can always do so easily. Click Next.
Select your port number next. I would leave it as 3306 unless you want to use another one for some reason. Select Next.
Select Standard Character Set and select Next.
Make sure its checked to Install as a Windows Service. This starts it up automatically when you start up your computer and is the easiest way to do so. Click Next.
Next you choose the Password for logging into your server. You will need this to login with SQLYog and for your server to connect to it so be sure to remember it. After you do so select Next.
after this select Next or Finish I forget to install it. It should run through with no problems and your MySQL is all set.
Next is sqlyog.
Install it. Now run it. Select the New tab.
For MySQL Host Adress enter localhost unless you have mysql on another pc and want to view the data from there. Then you would enter the IP adress of the computer with mysql on it.
Enter root for the username. Then enter the password you just chose.
For port enter 3306 unless you chose something else setting it up.
That should be fine then select Connect. If it asks to save it I would do so ... so that you dont have to enter all the information each time.
Now lets setup the database and tables and all that for Mirage Source.
Above the Query window click the button that is a green arrow with 2 files. It is called Execute Batch File.
Click "..." to browse. Go to your MS 3.0.7 folder and find mirage_online.sql. Choose that. Now click Execute.
Voila you have your database set up. Dont see it on the left side yet? Click F9 and that should refresh it. If you still dont see Mirage_Online on the side just simply close the program and reopen it. The database should be installed and you can now easily view your servers data.
Ok why not get the server to connect to the sql server we just set up now?
Go to your server source and open it. Go to modDatabase and at the top find...
Code:
Public Const strCONN = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=127.0.0.1;DATABASE=mirage_online;UID=root;PWD=****;OPTION=" & 1 + 2 + 8 + 32 + 2048 + 16384
keep in mind your password wont be ****. Change the password to whatever you selected and that should be all you have to. Of course unless you have the mysql on another pc or changed database name or anything like that. If so simply change those there.
If you havent already make sure to install MySQL ODBC 3.51 Driver. Its simple to do so. Now you can go start up your server. If it loads up with no problems Voila you are done. If not then you messed up somewhere along the way.
If you have trouble feel free to ask questions and I will help you the best I can.
GOOD LUCK!