Databases
Create and manage MySQL and PostgreSQL databases from the panel.
Creating a database
- Go to Databases
- Click Add database
- Pick MySQL or PostgreSQL
- Enter a database name and username
- Set a strong password (or let the panel generate one)
Connection from your site
From inside your site's PHP code, use these connection settings:
Host:
localhost (or 127.0.0.1)Port: 3306 (MySQL) or 5432 (PostgreSQL)
Database name, user, password: as you created them
phpMyAdmin and Adminer
Each database has a "Manage" button that opens phpMyAdmin (MySQL) or Adminer (PostgreSQL) signed in as the database user. Browse tables, run queries, import/export SQL dumps.
Backups
Databases are backed up nightly with the rest of your data. You can also manually export a SQL dump from the Database detail page at any time.