phpMyAdmin in cPanel - Complete guide to database management

What is phpMyAdmin in cPanel?

phpMyAdmin is a web-based tool that lets you manage MySQL/MariaDB databases from within cPanel, without the need for the command line.

With phpMyAdmin you can:

  • Explore databases.

  • Run SQL queries.

  • Create/modify tables and fields.

  • Import/export data (e.g. for a migration).

  • Optimize databases and fix errors.

It is a tool widely used by developers, but also by regular users who need to make changes to WordPress, Joomla, Drupal or custom applications.


Accessing phpMyAdmin through cPanel

  1. Log in to cPanel.

  2. In the Databases section, select phpMyAdmin.

  3. The management interface will open in a new tab.

  4. In the left column you will see all the databases that belong to your account.


Main features of phpMyAdmin

1. Exploring and managing databases

  • Select a database from the left panel.

  • Its tables will appear, with information such as Rows, Type, Collation, Size.

  • From here you can view the content, the structure and the indexes.

2. Running SQL queries

  • In the SQL tab, write custom queries (e.g. SELECT, UPDATE, DELETE).

  • Very useful for developers who want direct access to the data.

3. Managing tables

  • Browse: view the data.

  • Structure: view/change columns, indexes, primary keys.

  • Insert: add new data.

  • Drop: delete tables (careful, this cannot be undone).

  • Empty (TRUNCATE): clear all the data without deleting the table.

4. Importing & exporting data

  • Export:

    • You can export an entire database or specific tables.

    • Formats such as SQL, CSV, JSON and XML are supported.

    • For a migration, SQL is recommended.

  • Import:

  • Lets you search the entire database or specific tables/columns.

  • Very useful for WordPress (e.g. changing the site URL, searching for keywords in posts).

6. Optimizing and repairing tables

  • From the Operations tab, you can run:

    • Optimize table: optimizes the table for better performance.

    • Repair table: tries to repair corrupted tables (e.g. after a crash).

7. Privileges

  • phpMyAdmin shows the database users.

  • Users are created/modified in cPanel → MySQL Databases, not directly in phpMyAdmin.


Practical examples

Example 1: Changing the URL of a WordPress site

  1. Select the WordPress database.

  2. Find the table wp_options.

  3. Locate the fields siteurl and home.

  4. Click Edit and change the values to the new domain.

Example 2: Restoring a database backup

  1. In Import, select the SQL file.

  2. Confirm the encoding (usually utf8mb4).

  3. Click Go to complete it.

Example 3: Optimizing a WordPress database

  1. Select the database.

  2. Tick all the tables.

  3. From the drop-down menu, select Optimize table.


Tips and best practices

  • Always take a backup before making changes (use JetBackup or Export).

  • Be careful with DROP/DELETE queries – there is no undo.

  • For WordPress URL changes, also use search/replace on serialized data (or a plugin).

  • Keep your databases “clean”: delete old logs, transient records and orphaned tables.

  • Privileges: Do not give full access to users who do not need it.

  • Encoding: Use utf8mb4 to support Greek characters and emojis.


Frequently Asked Questions (FAQ)

Can I create a new database from phpMyAdmin?

No. Databases and users are created in cPanel → MySQL Databases. phpMyAdmin is used to manage existing databases.

How can I restore data deleted by mistake?

If you have not made an Export, you will need to use the JetBackup restore points.

What should I do if I get the error “#1044 Access denied”?

It means that your MySQL user does not have the necessary privileges for the action. Manage the privileges from cPanel.

Is there a limit on the size of the file I can import?

Yes, there is usually a limit (e.g. 50MB). For larger databases use SSH (on VPS/Dedicated) or split the SQL into smaller parts.


Conclusion

phpMyAdmin is the main tool for managing databases from within cPanel. It offers features for viewing, editing, importing/exporting and optimizing databases, covering the needs of both beginners and advanced users. Used correctly and combined with backup tools (JetBackup), it ensures that your database remains stable, secure and easy to manage.

Was this article helpful?

Related service Konet Web Hosting cPanel, LiteSpeed and automatic backups on every plan.

Related articles