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
- In Plesk, go to Databases
- Click Add Database
- Enter a database name
- Create a new database user: enter username and a strong password
- 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
- Go to Databases
- Click Webadmin next to your database
- phpMyAdmin opens — you can import/export, run SQL queries, and browse tables
Importing a database backup
- Open phpMyAdmin
- Select your database from the left sidebar
- Click Import
- Choose your
.sqlfile and click Go