Skip to Content
MinexonMinexon

Add

Map a leaderboard's MySQL source, player names, ranking metric and displayed columns.

Panel path Admin Dashboard → Content → Data → Leaderboards → Add

Choose a source and ranking metric

  1. Under General details, enter a Name of up to 120 characters and select a category. New leaderboards start with Active switched off.
  2. For Data source, choose the existing MySQL database or a different MySQL database. For a local source, enter an allowed statistics table. For example, if leaderboard_scores contains stats, you can use player_name, wins and playtime_seconds.
  3. Enter the source table under MySQL table. Check source verifies the connection and shows the table's available columns.
  4. Use a text column for Player name column. The source name needs to match the CMS username for personal placement and reward delivery.
  5. Use a numeric or date column for Ranking column. Sort descending for most wins or ascending for shortest completion time.

If a player appears on multiple rows, the sorting direction determines which row ranks highest and the leaderboard keeps that row. Players tied on the ranking metric receive separate positions in username order. Rows missing a player name or a ranking value are excluded.

Connect to an external MySQL database

For a leaderboard-specific connection, enter the MySQL server's IP address, Port, Database name, Username and Password. Give the database account read access only to the relevant statistics table. For displayed fields, use a table or view containing data you can publish.

For a remote connection, the hosting configuration needs a trusted CA file and MySQL must present a verifiable certificate. A hosting administrator must allowlist a private network address. If the installation already defines a shared external MySQL connection, leave the connection fields empty to use it. Leave the password field empty to keep the stored password when the existing connection details stay the same. Re-enter the password when the connection details change.

Configure the player table

Use Add column to add 1–8 distinct source fields. Give each field a Player-facing label of up to 80 characters. Use the up and down arrows to change the display order. Include the ranking column here if you want players to see its value.

FormatUse
TextDisplays the field as text.
NumberShows numeric values such as points or wins.
Display seconds as hoursConverts a numeric duration in seconds, such as playtime_seconds, to hours.
DateDisplays date and timestamp values as dates.

Select Load preview to check the first five rows, sort order and units before saving. Reload the preview if you change the mapping. When ready, enable Active and choose Save changes. Review publication and rewards on the Leaderboards screen.

Permissions

Creating a leaderboard requires leaderboard.boards.view, leaderboard.manage and leaderboard.boards.create. Checking the source requires leaderboard.source.inspect, previewing requires leaderboard.source.preview, and managing a leaderboard-specific MySQL connection requires leaderboard.sources.manage.