name = "mysql_fragment"

[[elements]]
border_bottom = true
border_top = true
name = "mysql_header"
title = "💾 MySQL Database Configuration"
type = "section_header"

[[elements]]
default = "localhost"
help = "MySQL server hostname or IP address"
name = "mysql_host"
nickel_alias = "mysql_host"
nickel_path = ["tracker", "core", "database", "mysql_host"]
placeholder = "localhost"
prompt = "MySQL host"
required = true
type = "text"

[[elements]]
default = "3306"
help = "MySQL server port (default 3306). Must be between 1-65535."
name = "mysql_port"
nickel_alias = "mysql_port"
nickel_path = ["tracker", "core", "database", "mysql_port"]
placeholder = "3306"
prompt = "MySQL port"
required = true
type = "text"

[[elements]]
default = "torrust_tracker"
help = "Name of the MySQL database"
name = "mysql_database_name"
nickel_alias = "mysql_database_name"
nickel_path = ["tracker", "core", "database", "database_name"]
placeholder = "torrust_tracker"
prompt = "Database name"
required = true
type = "text"

[[elements]]
default = "tracker_user"
help = "MySQL username for authentication"
name = "mysql_username"
nickel_alias = "mysql_username"
nickel_path = ["tracker", "core", "database", "mysql_username"]
placeholder = "tracker_user"
prompt = "Database username"
required = true
type = "text"

[[elements]]
help = "MySQL password for authentication"
name = "mysql_password"
nickel_alias = "mysql_password"
nickel_path = ["tracker", "core", "database", "mysql_password"]
prompt = "Database password"
required = true
type = "password"
