| Revision as of 13:05, 22 March 2007 Gcamp (Talk | contribs) Compile scorched3d ← Previous diff |
Revision as of 13:05, 22 March 2007 Gcamp (Talk | contribs) Set the database access Next diff → |
||
| Line 47: | Line 47: | ||
| ===Set the database access=== | ===Set the database access=== | ||
| copy the file located in your ''[[Installation Path]]''/data/mysql.xml to your ''[[User Data Directory]]''. | copy the file located in your ''[[Installation Path]]''/data/mysql.xml to your ''[[User Data Directory]]''. | ||
| + | |||
| Open the file with a text editor (for example: notepad in Windows). | Open the file with a text editor (for example: notepad in Windows). | ||
| - | Write between the tags <passwd></passwd> the password you used for the database. | + | Write between the tags ''<passwd></passwd>'' the password you used for the database. |
| ===Enable the stats logging=== | ===Enable the stats logging=== | ||
Contents |
Note: Windows builds come pre-compiled for mysql support so this step is not required for windows servers
Download source from the download page
Download mysql development (libraries and header files) rpm from the download page Install the mysql development rpm.
Download & install the latest MySql server package from Mysql.com
(MySql is very picky about the slash type, make sure that you use the type used in the guide)
Every table name shown should start with the scorched3d prefix
Inside the database client console type:
set password for 'root'@'localhost' = old_password ("yourpassword");
where yourpassword is the password you are going to use
copy the file located in your Installation Path/data/mysql.xml to your User Data Directory.
Open the file with a text editor (for example: notepad in Windows). Write between the tags <passwd></passwd> the password you used for the database.
open the file User Data Directory/server.xml with a a text editor (for example: notepad in Windows). Search for the tag called: <name>ServerLogger</name> and change the <value>none</value> to <value>mysql</value> or <value>pgsql</value>, according to your database type
Once the stats are being collected there are some administration tasks that may be required. All the commands must be entered through the database client console.
use scorched3d; update scorched3d_series set type=1 where seriesid="'#'";
The # is an incremental value, starts by default with 1, check the server logs to see what series is currently running.
update scorched3d_series set name="Series Name" where seriesid="'#'";
The # is an incremental value, starts by default with 1, check the server logs to see what series is currently running.