Database Basics
Many frameworks and advanced resources store persistent data in MySQL/MariaDB.
Safe setup flow
- Create the database.
- Create a database user with only the access it needs.
- Store the connection information privately.
- Install the database adapter required by your framework/resource.
- Import only the schema/migrations supplied by the product.
- Start the database dependency before resources that use it.
- Watch for connection or migration errors on boot.
Never publish credentials
A database connection string is a secret. Keep it out of public Git repositories and screenshots.
Before importing SQL
Back up an existing database. Read the product's upgrade instructions before importing a schema into a server that already has data.
Success check
A cold server boot connects without database errors and persistent data survives a reconnect/restart as expected.
Document status
Last reviewed: September 2026
Version note: Use the instructions that match your installed product/resource version. When behavior differs from your release, check its release notes before changing production configuration.
