๐น Databases (MySQL) #
Databases store your websiteโs content, user data, and settings. Most CMS platforms like WordPress rely on MySQL databases to function properly.
1๏ธโฃ Creating MySQL Databases #
You need a database before installing WordPress or any dynamic website.
Steps in Plesk:
-
Log in to Plesk
-
Go to Websites & Domains
-
Click Databases
-
Click Add Database
-
Enter:
-
Database name
-
Database user
-
Strong password
-
-
Click OK
๐ Save database credentials safely โ they are required during installation.
2๏ธโฃ Using phpMyAdmin #
phpMyAdmin is a web-based tool to manage MySQL databases.
Common uses:
-
View tables and records
-
Edit data manually
-
Run SQL queries
-
Repair or optimize tables
Accessing phpMyAdmin:
-
Go to Plesk โ Databases
-
Click on phpMyAdmin next to your database
๐ Use caution when editing data directly โ changes are immediate.
3๏ธโฃ Importing & Exporting Databases #
Useful for website migration, backups, or restores.
Export database:
-
Open phpMyAdmin
-
Select database
-
Click Export
-
Choose Quick or Custom
-
Download
.sqlfile
Import database:
-
Open phpMyAdmin
-
Select database
-
Click Import
-
Upload
.sqlfile -
Click Go
๐ Large databases may require SSH or compressed files.
๐ Database Best Practices #
-
Use strong database passwords
-
Avoid using root database access
-
Backup databases regularly
-
Clean unused tables for performance