VisualGuideToInstallingStendhalStep4: Difference between revisions
Content deleted Content added
imported>Javydreamercsw |
imported>Hendrik Brummermann added navigation menu |
||
| (86 intermediate revisions by 5 users not shown) | |||
Line 1:
{{Navigation for Stendhal Top|Building & Hosting}}
==Step 4. 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
Double-click the ''runserver.bat'' file:
[[File:ConfigureStendhalServer01.png]]
[[File:ConfigureStendhalServer02.png]]
When prompted for the name of the database
[[File:ConfigureStendhalServer03.png]]
[[File:ConfigureStendhalServer04.png]]
<span id="
[[File:ConfigureStendhalServer05.png]]
'''Warning:''' When prompted for the name of the database user password you have to write exactly the same password ('''Case SenSiTivE''') you
[[File:ConfigureStendhalServer06.png]]
▲When prompted for the name of the database:
'''Warning''': a RSA key size different than 512 may cause that the server does not work properly. This is a known bug.
This key is used for the players' passwords encryption on login, when they are sent from the Stendhal clients to the Stendhal server.
The generation of this key takes a while to finish.
[[File:ConfigureStendhalServer07.png]]
Once the RSA key is generated, the server will start automatically.
[[File:ConfigureStendhalServer08.png]]
▲When prompted for the name of the database host, this time you can safely press <tt>enter</tt> to accept the default localhost
'''To quit the server''', press [CTRL + c]...
▲<span id="ConfigureMarauroa_EnterUserPassword"></span>'''Warning:''' When prompted for the name of the database user you have to write exactly the same user you chose earlier when [[VisualGuideToInstallingStendhalStep2#CreateMySQLDatabase_SetUserPassword|creating the database at Step 2]]. So copy from here:
[[File:ConfigureStendhalServer09.png]]
... and answer ''yes'' to the question (by typing ''y'' or ''s'' or something else in your local language).
[[File:ConfigureStendhalServer10.png]]
'''To start the server again''', just double-click the ''runserver.bat'' file as in the beginning of this step.
▲'''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:
The program will detect that the server has already been configured (i.e. that a ''server.ini'' file exists) and will just start the server.
Go to [[VisualGuideToInstallingStendhalStep5|Step 5. Install and run the Stendhal client to play in your local Stendhal server]]▼
▲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]].
▲Go to [[VisualGuideToInstallingStendhalStep5|Step 5. Install Stendhal server]]
<br>
| |||