| Revision as of 12:56, 22 March 2007 Gcamp (Talk | contribs) Create the stats tables ← Previous diff |
Revision as of 12:56, 22 March 2007 Gcamp (Talk | contribs) Download & Install Next diff → |
||
| Line 22: | Line 22: | ||
| ====Download & Install==== | ====Download & Install==== | ||
| - | Download & install the latest MySql server package from [www.mysql.com] | + | Download & install the latest MySql server package from [http://www.mysql.com] |
| ====Create the stats tables==== | ====Create the stats tables==== | ||
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.
cd into scorched directory. clean settings (make distclean) configure scorched (sh autgen.sh --with-mysql) (NOTE: you need to specify the flag --with-mysql flag) compile (make) install (make install) or copy scorched3d binary to installed scorched location.
Download & install the latest MySql server package from [1]
(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.