Kruiger Labs
Client Portal Get Started
DocumentationKruiger Labs products
Sign inGet support
Shared database guide

MySQL and MariaDB

Understand database credentials, imports, remote access, JDBC strings, connection testing, and backups.

Understand the credentials#

Your database provider supplies five separate values: hostname, port, database name, username, and password. The database host is not your website URL. If remote access is restricted, allow the bot host's outbound IP in the provider firewall or access list.

ValueExample placeholderMeaning
HostYOUR_DATABASE_HOSTThe network hostname supplied by the database provider.
Port3306The common MySQL port unless your provider supplies another.
DatabaseYOUR_DATABASE_NAMEThe schema allocated to this bot.
UserYOUR_DATABASE_USERThe database login, not your hosting-panel username.
PasswordYOUR_DATABASE_PASSWORDThe database user password.

Import an SQL file#

  1. Create the database and a dedicated database user in the hosting panel.
  2. Grant that user access to the database.
  3. Open phpMyAdmin, select the database, choose Import, select the product SQL file, and run the import.
  4. Alternatively, use the MySQL command-line client with the exact database name supplied by the provider.
  5. Start the bot and check its console for a successful connection message.
Command-line example
mysql -u YOUR_DB_USER -p YOUR_DB_NAME < install.sql

Read a JDBC connection string#

If a provider supplies jdbc:mysql://mysql.example.com:3306/dmrelay, do not paste the entire value into DB_HOST. Use mysql.example.com as the host, 3306 as the port, and dmrelay as the database name. Enter the username and password separately.

Test and protect the database#

Connection failures commonly come from a wrong hostname, an incorrect database name, blocked remote access, invalid credentials, or a database user without permission. Back up the database before product upgrades and store backups separately from the live bot files.

Back to top