FastPanel: step 7. Database

In the examples 203.0.113.10 is your server address and my-site.com is your domain. The panel address, login and password are in the VPS activation e-mail.

Create a database

  1. "Management" → "Databases" → "New database".
  2. Database name, user (up to 16 characters), password.
  3. Site: choose yours. Deleting the site deletes the database too.
  4. Charset: UTF-8. Click "Save".

Connection from the site: host localhost, port 3306, database name, user, password.

Database list and the phpMyAdmin button
Database list and the phpMyAdmin button
New database
New database

phpMyAdmin

The phpMyAdmin icon next to the database in the list. No password needed.

Import and export

  • A small database (up to 50 MB) — in phpMyAdmin: "Import" / "Export".
  • A large one — via SSH as your user:
mysql -u USER -p DBNAME < dump.sql
mysqldump -u USER -p DBNAME > dump.sql

Change the database user password

"Databases" → user → "Edit". After the change put the new password into the site configuration.

Connecting to the database from another computer (remote access) is enabled by support.

Database servers
Database servers