Using phpMyAdmin
phpMyAdmin is a browser-based MySQL administration tool.
Accessing phpMyAdmin
- Log in to DirectAdmin → phpMyAdmin under Databases.
- You are automatically logged in.
Import a Database
- Click your database name (left sidebar).
- Click Import → Choose File → select your
.sqlfile. - Click Go.
For files larger than 50 MB, use the SSH method below.
Export / Backup a Database
- Select your database → Export → Quick → Go.
- Save the
.sqlfile.
Import via SSH (Large Files)
mysql -u yourusername_dbuser -p yourusername_dbname < backup.sql
Run a SQL Query
Select your database → click SQL tab → type your query → click Go.