知识库Plesk 管理Managing databases in Plesk
Plesk 管理

4 分钟阅读

Managing databases in Plesk

Create MySQL databases, add database users, and use phpMyAdmin to manage data.

Database management in Plesk

Plesk makes it easy to create and manage MySQL/MariaDB databases for your web applications.

Creating a database

  1. In Plesk, go to Databases
  2. Click Add Database
  3. Enter a database name
  4. Create a new database user: enter username and a strong password
  5. Click OK

Connecting your app to the database

Use the database name, username, password, and host (localhost) in your application's configuration file (e.g. wp-config.php for WordPress).

Accessing phpMyAdmin

  1. Go to Databases
  2. Click Webadmin next to your database
  3. phpMyAdmin opens — you can import/export, run SQL queries, and browse tables

Importing a database backup

  1. Open phpMyAdmin
  2. Select your database from the left sidebar
  3. Click Import
  4. Choose your .sql file and click Go