Skip to main content

Database-MySQL Module

By default, CloudNet uses H2 to store its data, this module replaces the H2 database with your MySQL database.
Without any modules, CloudNet will only store PermissionData in this database. The default modules extend this by PlayerData, Signs, and NPCs.



This parameter does not need to be changed. It's value has to be put in the local/registry file at the database_provider key to activate the MySQL-Database.


If you don't change this option, CloudNet will persist on H2 even if you put your correct credentials into the config.


This is a JsonArray of database addresses. You do not need to add an element if you do not have a MySQL cluster.


useSsl, connectionPoolSize, connectionTimeout & validationTimeout should not be changed if you do not know what they are doing!


All other keys should be self explaining :)

Sample Configuration#

The default configuration of the Database-MySQL Module looks like this:

Last updated on