Using phpMyAdmin in DirectAdmin
phpMyAdmin is a web-based tool for managing MySQL databases. It provides a graphical interface for running SQL queries, browsing tables, importing and exporting data, and managing database structure.
Accessing phpMyAdmin
- Log in to DirectAdmin
- Navigate to Account Manager or Your Account
- Click phpMyAdmin (or access it through MySQL Management > phpMyAdmin link)
- You will be logged into phpMyAdmin automatically via SSO
Tip: If phpMyAdmin does not load, try clearing your browser cache or using an incognito window.
Navigating the Interface
Left Panel
- Shows all your databases
- Click a database name to expand and see its tables
- Click a table name to browse its data
Top Navigation
- SQL — Run custom SQL queries
- Import — Upload and import SQL files
- Export — Download database backups
- Operations — Rename, copy, or optimize tables
- Search — Search across all tables
Common Tasks
Browse and Edit Data
- Select your database from the left panel
- Click on a table name
- The Browse tab shows all rows
- Click Edit next to any row to modify it
- Click Delete to remove a row
- Use Insert tab to add new rows
Run SQL Queries
- Select your database
- Click the SQL tab
- Enter your query in the text area:
SELECT * FROM users WHERE status = 'active' ORDER BY created_at DESC LIMIT 50;- Click Go to execute
Create a New Table
- Select your database
- Under "Create table," enter the table name and number of columns
- Click Go
- Define each column: name, type, length, default value, index, etc.
- Click Save
Search Across Tables
- Select your database
- Click the Search tab
- Enter your search term
- Select which tables to search
- Click Go to find matching records
Importing Data
- Select the target database
- Click Import
- Click Choose File and select your
.sqlor.csvfile - Set the format (usually auto-detected)
- Click Go
File size limit: phpMyAdmin typically supports uploads up to 50 MB. For larger files, import via SSH.
Exporting Data
- Select the database (or specific tables)
- Click Export
- Choose export method:
- Quick — Downloads the entire database with default settings
- Custom — Lets you choose specific tables, format options, and compression
- Format is usually SQL for backups
- Click Go to download
Tip: Always export a backup before making structural changes to your database.
Optimizing Tables
Over time, tables can become fragmented. To optimize:
- Select your database
- Check the tables you want to optimize
- From the dropdown at the bottom, select Optimize table
- Click Go
Troubleshooting
phpMyAdmin Shows Blank Page
- Clear your browser cache and cookies
- Try accessing in an incognito window
- Disable browser extensions that may interfere
Import Fails with Timeout
- Split your SQL file into smaller parts
- Use SSH for large imports instead
Cannot Delete or Modify Rows
- Ensure the table has a primary key defined
- Check that your database user has the required privileges
Related Articles
Need help? Contact our support team at {{SUPPORT_EMAIL}} or open a ticket at {{SUPPORT_URL}}.