How do I access my website databases?

Your hosting plan includes MySQL databases.

To create a database:

  1. Log in to the Unified Panel
  2. Open your hosting plan and click "Databases"
  3. Click "Create Database"
  4. Enter a database name (letters, numbers and underscores) and a password
  5. Click "Create". The panel shows the database name, username, password and host. Save these for your app's config

Connecting from your website: Use 172.20.0.1 as the database host, not localhost. The host is also shown under "Connection Details" on the Databases page.

phpMyAdmin: Click "phpMyAdmin" on your hosting page, or "Open phpMyAdmin" on the Databases page. It signs you in automatically. You can browse tables, run queries and import or export data.

Each database also has buttons to change its password, export a backup, restore from an SQL file (up to 50 MB), reset it or delete it. If the Databases page says the database service is disabled, turn it on with the switch at the top of the page.

Was this helpful?
Back to Knowledge Base