In order to provide this service for free, we may receive compensation from the sites listed. We believe in transparency.

How to Use phpMyAdmin: A Beginner’s Guide

To use phpMyAdmin, log in to your hosting control panel, open phpMyAdmin under Databases, pick your database in the left sidebar, and work from the tabs along the top. Use Browse to view data, SQL to run queries, Export to back up, Import to restore, and Operations to maintain tables. phpMyAdmin is free, open-source, and written in PHP. The current stable release is version 5.2.3, released October 8, 2025.

phpMyAdmin at a Glance

  1. Open phpMyAdmin from your hosting dashboard or cPanel.
  2. Pick your database in the left sidebar and learn the main tabs.
  3. Export a backup before you change anything.
  4. Import a database from an SQL, CSV, or compressed file.
  5. Repair a table when a table is damaged.
  6. Run SQL queries from the SQL tab.

What Is phpMyAdmin?

phpMyAdmin is a web-based tool for managing MySQL and MariaDB databases. Instead of typing every command in a terminal, you click through tables, rows, and settings in a browser. It is built into the control panel of most shared hosting plans, so you rarely need to install it yourself.

People use it to back up and restore a site’s database, edit a record by hand, fix a broken WordPress setting, create user accounts, and run queries. Developers like it for speed, and site owners use it for the occasional fix. If you are choosing a host partly for database tools, see our list of the best cPanel hosting providers.

How to Open phpMyAdmin in cPanel

The steps below use the HostPapa dashboard. Other hosts with cPanel work almost the same way, so look for a Databases section in your control panel.

  1. Log in to your hosting account dashboard and click My cPanel.
    The My cPanel button highlighted in the HostPapa dashboard menu
  2. Scroll down to Databases and click phpMyAdmin. HostPapa’s knowledge base notes that Managed WordPress customers can reach it from My WordPress.
    The phpMyAdmin icon highlighted in the Databases section of cPanel
  3. phpMyAdmin opens in a new tab. It can take a moment to load, which is normal. Use the navigation tree in the left sidebar to find the database you want.

Screens differ slightly between hosts and phpMyAdmin versions, but the tabs and options below are the same.

The Main phpMyAdmin Tabs

After you click a database, the top menu shows what you can do. These are the tabs most people use:

Tab What it does
Structure Lists tables and lets you add, rename, empty, or drop them
SQL Runs SQL queries you type or paste
Search Finds rows across tables without writing SQL
Export Saves the database or selected tables to a file
Import Loads data from a file into the database
Operations Renames or copies a table, and runs table maintenance such as check, optimize, and repair
Privileges Manages MySQL user accounts and what each can do

How to Export a Database in phpMyAdmin

Export a backup before you edit, import, or repair anything. Mistakes in a database are hard to undo.

  1. Select your database in the left sidebar.
  2. Click the Export tab.
  3. Choose Quick for a complete copy, or Custom to pick tables, the file format, and compression.
  4. Leave the format as SQL for a standard backup, then click Export (or Go).

phpMyAdmin can also export to formats such as CSV, JSON, XML, and PDF, according to its import and export documentation. Use SQL when you plan to restore the database later. Use CSV when you want to open the data in a spreadsheet.

How to Import a Database in phpMyAdmin

  1. Select the database you want to load data into. Create an empty one first if you are restoring to a new database.
  2. Click the Import tab.
  3. Click Choose File and select your backup. phpMyAdmin accepts SQL, CSV, XML, and other formats, and it reads compressed files such as mydump.sql.gz.
  4. Check that the format matches your file, then click Import (or Go).

Importing a large file? The upload can fail because of PHP limits. The phpMyAdmin FAQ says to check upload_max_filesize, post_max_size (which must be larger than the upload limit), memory_limit, and max_execution_time. If you cannot change them, upload the file to the server by FTP and import it from the upload directory, split the file into smaller pieces, or ask your host to raise the limits. For CSV files that fill an auto-increment column, set that column’s value to 0.

How to Repair a Table in phpMyAdmin

A crash or a full disk can damage a table. When that happens, you may see errors such as “table is marked as crashed.” To repair it in phpMyAdmin:

  1. Export a backup first.
  2. Open your database and click the Structure tab.
  3. Tick the box next to the damaged table.
  4. Open the With selected menu and choose Repair table. You can also open the table’s Operations tab and use Table maintenance.

Know the limit: MySQL’s REPAIR TABLE statement works only for MyISAM, ARCHIVE, and CSV tables. Most modern sites use InnoDB, which this command does not cover. MySQL also warns that a repair can cause data loss in some cases, which is why the backup comes first. If repair is not available or does not help, ask your host to restore the database from a backup.

How to Run SQL Queries

Select your database, click the SQL tab, type or paste your query, and click Go, as described in HostPapa’s guide to running SQL queries in phpMyAdmin. Start with a read-only SELECT statement to see what you will change. Run UPDATE and DELETE only with a WHERE clause, and only after a backup.

What Else Can phpMyAdmin Do?

The tool’s feature list is long. Useful options include:

  • Managing more than one server from one screen
  • Adding, editing, and removing MySQL user accounts and privileges
  • Building queries with Query-by-example (QBE)
  • Creating, editing, exporting, and dropping stored procedures, functions, events, and triggers
  • Checking referential integrity in MyISAM tables
  • Converting text files into tables when you import them

Tips for Using phpMyAdmin Safely

  • Back up first. Export the database before every edit, import, or repair.
  • Change one thing at a time and check the result before you move on.
  • Be careful with Drop and Delete. They remove tables and rows immediately.
  • Keep your hosting account secure. Use strong passwords, which a free password manager can store.
  • Use a host with good support and backups, so you have a safety net. Our managed WordPress hosting picks handle database maintenance for you.

phpMyAdmin FAQs

What is phpMyAdmin used for?

phpMyAdmin is used to manage MySQL and MariaDB databases from a browser. You can browse data, run SQL queries, import and export databases, manage user accounts, and maintain tables without using the command line.

Is phpMyAdmin free?

Yes. phpMyAdmin is free, open-source software. Most hosting companies include it in their control panel at no extra cost.

How do I log in to phpMyAdmin?

Most people open it from their hosting control panel. In cPanel, go to the Databases section and click phpMyAdmin, and you are signed in automatically. On a server you manage yourself, sign in with a MySQL username and password.

What is the difference between PHP and phpMyAdmin?

PHP is a programming language used to build websites. phpMyAdmin is a database management tool that is written in PHP. You use PHP to build a site, and you use phpMyAdmin to manage the database behind it.

How do I import a large database into phpMyAdmin?

Check the PHP limits for upload size, post size, memory, and execution time, and ask your host to raise them if needed. Otherwise, compress the file, split it, or upload it by FTP and import it from the server’s upload directory.

Can phpMyAdmin repair a table?

Yes, for MyISAM, ARCHIVE, and CSV tables. Use the With selected menu on the Structure tab and choose Repair table. It does not repair InnoDB tables, so back up first and contact your host if the table stays damaged.

Final Thoughts

phpMyAdmin turns database management into a few clicks: open it from cPanel, choose a database, and use the Export, Import, SQL, and Operations tabs. Make a backup before every change, and you can use it with confidence. If you are still choosing a host, compare the best cPanel hosting providers, or start with our shared hosting guide if you are new to hosting.

Find The Best Hosting

We made sure to cover all the most popular hosting use cases and are working daily to test and feature only the best options for you to choose from!