dbPort

var dbPort: Int

The port number for the MySQL database server connection.

This property specifies the TCP port on which the MySQL server is listening for incoming connections. The standard MySQL port is 3306, but this can be customized for security or multi-instance deployment scenarios.

Common Port Configurations:

  • 3306: Standard MySQL port (default)

  • 3307: Alternative MySQL port for multi-instance setups

  • Custom ports: Any valid TCP port number (1024-65535 for non-root users)

Default Value: 3306 (standard MySQL port)

Configuration Key: "database.port"

Security Considerations:

  • Non-standard ports can provide security through obscurity

  • Firewall rules must allow connections to the specified port

  • Port conflicts with other services should be avoided

Valid Range: 1-65535 (though typically 1024-65535 for non-privileged users)

Since

1.0.0