VisualGuideToInstallingStendhalStep5: Difference between revisions
imported>Kymara remove distracting update notes which would be in history |
imported>Kymara something bad happened. |
||
| Line 1: | Line 1: | ||
==Step 5. Configure marauroa to access the MySQL database== |
==Step 5. Configure marauroa to access the MySQL database== |
||
Now you will generate a marauroa *.ini file so that marauroa knows where and how to access the database with the user accounts and other info. |
Now you will generate a marauroa *.ini file so that marauroa knows where and how to access the database with the user accounts and other info. |
||
Open a command prompt window. |
Open a command prompt window,and cd to ''marauroa/'' folder (don't worry, in the photo they called it ''marauroa-2.'', ignore this). |
||
[[Image:Step5cd.PNG]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration01.png |
|||
At prompt, copy from here, with the correct version number instead of X.XX: |
|||
cd to ''marauroa/'' folder |
|||
| ⚫ | |||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration02.png |
|||
| ⚫ | |||
At prompt, copy from here: |
|||
| ⚫ | |||
| ⚫ | |||
Now USE your mouse and right-click anywhere inside the window and choose paste. |
Now USE your mouse and right-click anywhere inside the window and choose paste. |
||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration03.png |
|||
Then press <tt>enter</tt> |
Then press <tt>enter</tt> |
||
[[Image:Step5GenerateINI.PNG]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration04.png |
|||
'''Warning:''' depending on how you have copied it maybe there's no need to press <tt>enter</tt> this time after you paste (you might have copied the <tt>enter</tt> character too). |
'''Warning:''' depending on how you have copied it maybe there's no need to press <tt>enter</tt> this time after you paste (you might have copied the <tt>enter</tt> character too). |
||
When prompted for the name of the database |
When prompted for the name of the database, press enter to accept the default or write your own. |
||
[[Image:Step5GenerateINI1.png]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration06.png |
|||
Press enter to accept the default or write your own. |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration07.png |
|||
Then press <tt>enter</tt> |
Then press <tt>enter</tt> |
||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration08.png |
|||
When prompted for the name of the database host, this time you can safely press <tt>enter</tt> to accept the default localhost |
When prompted for the name of the database host, this time you can safely press <tt>enter</tt> to accept the default localhost |
||
| Line 47: | Line 34: | ||
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt> |
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt> |
||
[[Image:Step5GenerateINI2.PNG]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration09.png |
|||
'''Warning:''' When prompted for the name of the database user password you have to write exactly the same password you chose earlier when [[VisualGuideToInstallingStendhalStep2#CreateMySQLDatabase_SetUserPassword|creating the database at Step 2]]. So copy from here: |
'''Warning:''' When prompted for the name of the database user password you have to write exactly the same password you chose earlier when [[VisualGuideToInstallingStendhalStep2#CreateMySQLDatabase_SetUserPassword|creating the database at Step 2]]. So copy from here: |
||
| Line 55: | Line 42: | ||
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt> |
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt> |
||
[[Image:Image10.PNG]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration10.png |
|||
Here, like I have just done, it reminds you that you should have granted all permissions to access the marauroa database to the user ''stendhal_user'' with password ''stendhal_passwd''. And that is precisely what we have just done already when [[VisualGuideToInstallingStendhalStep2#CreateMySQLDatabase_SetUserPassword|creating the database at Step 2]]. |
Here, like I have just done, it reminds you that you should have granted all permissions to access the marauroa database to the user ''stendhal_user'' with password ''stendhal_passwd''. And that is precisely what we have just done already when [[VisualGuideToInstallingStendhalStep2#CreateMySQLDatabase_SetUserPassword|creating the database at Step 2]]. |
||
Revision as of 16:47, 10 January 2010
Step 5. Configure marauroa to access the MySQL database
Now you will generate a marauroa *.ini file so that marauroa knows where and how to access the database with the user accounts and other info.
Open a command prompt window,and cd to marauroa/ folder (don't worry, in the photo they called it marauroa-2., ignore this).
At prompt, copy from here, with the correct version number instead of X.XX:
java -cp marauroa.jar;stendhal-server-X.XX.jar games.stendhal.server.core.engine.GenerateINI
which is Case SenSiTivE! And remember to change the 0.XX to whatever version you have (the photos below are outdated so they look a little different - don't worry!)
Now USE your mouse and right-click anywhere inside the window and choose paste.
Then press enter
Warning: depending on how you have copied it maybe there's no need to press enter this time after you paste (you might have copied the enter character too).
When prompted for the name of the database, press enter to accept the default or write your own.
Then press enter
When prompted for the name of the database host, this time you can safely press enter to accept the default localhost
Warning: When prompted for the name of the database user you have to write exactly the same user you chose earlier when creating the database at Step 2. So copy from here:
stendhal_user
and USE your mouse and right-click anywhere inside the window and choose paste. Then press enter
Warning: When prompted for the name of the database user password you have to write exactly the same password you chose earlier when creating the database at Step 2. So copy from here:
stendhal_passwd
and USE your mouse and right-click anywhere inside the window and choose paste. Then press enter
Here, like I have just done, it reminds you that you should have granted all permissions to access the marauroa database to the user stendhal_user with password stendhal_passwd. And that is precisely what we have just done already when creating the database at Step 2.
Note: Depending on the power and memory of your PC you can get warnings (later in the server window) of turn time overflow (I do) if you set it this value or lower but that does not hurt (I think).
When prompted for the size for the RSA key:
Press enter to accept default
I think this key is used for users' passwords encryption inside the database. For the use we are going to make of it I do not think we need this security measure so I would write 0 or 1, but to be on the safe side, let's press enter to accept the default (512) and wait a while or longer to finish.
Roughly estimated time (one Mississippi, two Mississippi...) on my computer: 45 seconds (who knows if more, who knows if less)
Close the window: Type exit or simply click on the X (yes, I will be declared a genius for this sentence)
Go to Step 6. Run MySQL as a service (if it is not running already)
Back to Visual Installation Guide Step-By-Step
Back to stendhal main wiki page
