Skip to main content

phpMyAdmin is a browser-based tool for working with MySQL and MariaDB databases. It lets you inspect tables, run SQL queries, import and export data, and carry out routine database tasks without using a command-line client. If your website runs WordPress or another database-driven application, knowing how to use phpMyAdmin can help you troubleshoot problems, move a site and manage data more confidently.

This guide explains how to access phpMyAdmin, understand its main screens, perform common database tasks and avoid mistakes that could damage a live website. Menu names and available features can differ slightly between phpMyAdmin versions and hosting providers.

What Is phpMyAdmin?

phpMyAdmin is free, open-source software written in PHP. It provides a graphical interface for administering MySQL and MariaDB database servers. Instead of entering every command in a terminal, you can use the browser interface to browse databases, view and edit tables, execute SQL statements, and import or export data.

phpMyAdmin is a database administration interface, not a database server or a website backup system. It connects to a database server using an account and the permissions assigned to that account. What you can do therefore depends on the privileges granted by your hosting provider or database administrator.

How to Access phpMyAdmin

Access phpMyAdmin through cPanel

  1. Sign in to your hosting account and open cPanel.
  2. Find the Databases section. Depending on the cPanel theme, you may see a phpMyAdmin icon directly or need to open the database tools area.
  3. Select phpMyAdmin. Your hosting panel may pass you through automatically, or ask you to authenticate.
  4. Choose the database you need from the navigation panel on the left.

If phpMyAdmin is missing, or the database you expect is not listed, check that you are in the correct hosting account and ask your provider or administrator whether the tool and database access are enabled. See our cPanel beginner’s guide for more about the hosting control panel.

Access phpMyAdmin in a local development environment

Local development packages such as XAMPP, WampServer and MAMP may include phpMyAdmin. Start the local web server and database service, then use the phpMyAdmin link supplied by that package. Some installations use http://localhost/phpmyadmin, but the address and login details depend on how the environment was configured.

Do not assume that the MySQL root account has a blank password. Use the credentials configured for your local database, and set a strong password before exposing a development environment beyond your own computer.

Understanding the phpMyAdmin Interface

The layout varies by version, but most installations include a navigation panel and a main workspace. The left panel lists databases and, after you select one, its tables. The main workspace shows the selected database or table and provides tabs for common operations.

  • Structure: view table names, columns, indexes and table properties.
  • Browse: inspect records stored in a table.
  • SQL: enter and run SQL statements.
  • Search: find matching values across a table or database, where supported.
  • Insert: add a record to a table.
  • Export: save database or table data to a file.
  • Import: load data from a supported file into the selected database or table.
  • Operations: access additional table or database operations, depending on your permissions.

Always confirm the selected database and table before making a change. A query run against the wrong database can affect a different website or application.

How to Create a Database

If your account has permission to create databases, you may be able to do so from phpMyAdmin:

  1. Open the Databases tab.
  2. Enter a database name in the create-database field.
  3. Choose a character set or collation appropriate for your application and server version. If you are unsure, use the value recommended by your application or hosting provider rather than changing it arbitrarily.
  4. Select Create.

On many shared hosting accounts, databases and database users must instead be created in cPanel or another hosting control panel. Some providers restrict database creation inside phpMyAdmin. Follow the workflow provided by your host.

How to Create and Manage Tables

Create a table

  1. Select the database in the left navigation panel.
  2. Use the create-table form to enter a table name and the number of columns.
  3. Define each column’s name and data type, such as INT, VARCHAR, TEXT or DATETIME.
  4. Set appropriate options, such as whether a column can be NULL, its default value, and whether an identifier should auto-increment.
  5. Choose a primary key where the application design requires one, then save the table.

Do not create or alter tables in a live application unless you understand the schema and have a recoverable backup. Applications often rely on specific column names, data types, indexes and relationships.

View or change a table structure

Select a table and open Structure to inspect its columns and indexes. From this screen, phpMyAdmin may let you add, modify or remove columns and indexes. Removing a column can permanently delete the values stored in it, so check application requirements and back up the database before making structural changes.

How to View, Insert, Edit and Delete Records

Select a table and choose Browse to view its records. Depending on your privileges, you can use the row actions to edit or delete an individual record. Use Insert to add a new row and provide values for the required columns.

  • View: browse records and use pagination or filters to find the rows you need.
  • Insert: enter values for the relevant columns and submit the form.
  • Edit: open the row’s edit action, change only the required values and save.
  • Delete: select the correct row and confirm the deletion only after checking that it is safe to remove.

For a WordPress database, avoid editing core tables or deleting records just because their purpose is not immediately obvious. Plugins and themes may store important settings or relationships in tables that are not part of the standard WordPress core.

How to Run SQL Queries in phpMyAdmin

The SQL tab provides a query editor. Select the intended database or table first, enter a statement and run it. Start with read-only queries when learning the interface.

View records with SELECT

SELECT ID, post_title, post_status
FROM wp_posts
ORDER BY ID DESC
LIMIT 10;

This example displays up to ten recent records from a typical WordPress posts table. Your table prefix may not be wp_, so use the actual table name shown in your database.

Update a specific record

UPDATE example_table
SET status = 'active'
WHERE id = 25;

This is an illustrative example only. Check the table and row first, and ensure the WHERE condition identifies exactly the intended record. Without a suitable WHERE clause, an UPDATE can change every row in the table.

Delete a specific record

DELETE FROM example_table
WHERE id = 25;

Deletion is permanent unless you can restore the affected data from a backup or another recovery mechanism. Never run an unfamiliar DELETE, DROP or TRUNCATE statement on a live database without understanding its effect and confirming that a current backup is available.

How to Export a Database in phpMyAdmin

Exporting creates a database dump that can be used for migration or recovery. For a WordPress database backup:

  1. Open phpMyAdmin and select the correct WordPress database.
  2. Choose Export.
  3. For a straightforward export, select Quick and choose SQL as the format, if those options are available.
  4. For more control, use Custom to choose tables, compression and other export options.
  5. Start the export and save the downloaded file somewhere secure, separate from the hosting account.
  6. Check that the file exists and has a plausible size before relying on it as a backup.

For large databases, a browser-based export may time out or run into server limits. Your host may provide a backup tool or recommend a command-line utility such as mysqldump. WordPress explains that a database export protects posts, pages, comments and settings, but it does not include website files such as themes, plugins and uploads. A complete site backup needs both the database and the files. See the WordPress database backup guide.

How to Import a Database in phpMyAdmin

Importing loads data from a supported dump file into the selected database or table. Take care: an import can add, replace or drop existing tables depending on the statements contained in the file.

  1. Create or select the destination database. Confirm it is the correct one before continuing.
  2. Choose Import.
  3. Select the SQL dump file from your computer. Compressed SQL files may also be supported, depending on the server configuration.
  4. Review the format and character-set options, then start the import.
  5. Wait for the completion message and check that the expected tables and records are present.
  6. Test the application that uses the database, including key pages and functions.

If an import fails, check the error message, file format, database permissions, PHP upload limits, execution time and database server limits. Large imports may need a hosting-provider-assisted method or command-line import. The official phpMyAdmin import and export documentation explains supported workflows and common limitations.

Managing Database Users and Permissions

Database users are authenticated by the MySQL or MariaDB server. phpMyAdmin provides an interface for managing accounts where the connected account has sufficient privileges, but a normal hosting user may not have permission to create users or change global privileges.

Use the hosting control panel or the database administrator’s approved process to create a dedicated database user for each application. Grant only the permissions the application needs. Avoid using a highly privileged administrative account for routine website connections, and never share database credentials publicly.

For WordPress, database connection details are stored in wp-config.php. If you change a database name, username or password, update the configuration carefully and test the site afterwards.

How to Use phpMyAdmin Safely

  • Back up first: export the database and confirm the backup file is usable before significant edits, imports or schema changes.
  • Protect the login: access phpMyAdmin through your authenticated hosting panel or a properly secured installation. Use HTTPS and strong account credentials.
  • Use least privilege: work with an account that has only the permissions required for the task.
  • Check the target: verify the database, table and selected rows before running a query.
  • Be cautious with destructive SQL: review DELETE, UPDATE, DROP and TRUNCATE statements before execution.
  • Keep software maintained: use a supported, patched phpMyAdmin version provided or approved by your hosting administrator.
  • Limit exposure: do not leave an unsecured phpMyAdmin installation publicly accessible. Follow your host’s access restrictions and security guidance.
  • Store exports securely: database dumps may contain personal information, password hashes and other sensitive data. Protect them and remove temporary copies when no longer needed.

phpMyAdmin is an administration interface; it does not automatically secure the database server. Server permissions, authentication and deployment security still need to be configured correctly. The phpMyAdmin security and installation guidance provides further details.

Common phpMyAdmin Problems and How to Fix Them

phpMyAdmin is not available in the hosting panel

The provider may not offer it on your plan, may use a different database tool, or may have disabled access. Check the hosting documentation or contact support rather than installing a separate public copy without approval.

The database does not appear

Confirm that you are signed in to the correct hosting account and that the database exists. Your account may not have been assigned access to it. Check database privileges in the hosting control panel or ask the administrator.

Access denied or authentication failed

Check the username, password, database host and assigned privileges. On managed hosting, use the login route supplied by the provider. Avoid repeatedly guessing credentials or changing server-level accounts without authorisation.

Import file is too large or times out

Check the upload and execution limits configured by the host. Try a supported compressed dump, split the export where appropriate, or ask the provider to import it using a server-side method. Do not assume that increasing a browser upload limit alone will solve database server limits.

SQL syntax or character-set errors

Read the complete error message and check that the dump matches the database version and expected character set. Do not repeatedly run partial imports against a live database without checking which statements have already completed.

When Should You Use phpMyAdmin?

phpMyAdmin is useful for inspecting tables, running a carefully reviewed query, exporting data, importing a database and troubleshooting database-related issues. It is not a substitute for a regular backup process, application-level administration or a proper migration plan. For routine WordPress content changes, use the WordPress dashboard wherever possible; reserve direct database edits for situations where you understand the data model and have a recovery plan.

Hosting with cPanel and Database Access

If you are setting up a website and want a hosting control panel with database management tools, compare the database, backup and support features included in each plan. Availability of phpMyAdmin and database permissions can vary by provider and plan.

Shared web hosting plans with cPanel and MySQL database support

Shared Hosting with cPanel

Explore hosting plans that include cPanel, MySQL or MariaDB databases and website backup features.

Frequently Asked Questions

Is phpMyAdmin a database?

No. phpMyAdmin is a web-based administration tool. It connects to a MySQL or MariaDB database server and lets authorised users manage databases through a browser.

Can I use phpMyAdmin without cPanel?

Yes. phpMyAdmin can be installed and configured separately or included in another hosting control panel or local development environment. You need a supported web server, PHP, a database server connection and a secure configuration.

Can phpMyAdmin manage WordPress databases?

Yes. It can browse and manage the MySQL or MariaDB database used by WordPress, provided your account has the required permissions. Back up first and avoid changing WordPress tables unless you understand the consequences.

Does exporting a database back up my entire WordPress website?

No. A database export contains database information, such as posts, pages, comments and settings. It does not include themes, plugins, media uploads or other website files. Back up both the database and files for a complete site backup.

Why can I view a database but not create or delete one?

Your database account may have limited privileges, or your hosting provider may require you to create and manage databases through its control panel. Ask the provider or administrator which operations your account supports.

Is it safe to edit a live database in phpMyAdmin?

It can be safe when you understand the schema, have a current backup, use the correct account and carefully verify every change. A mistaken query can break a website or permanently remove data, so use read-only queries first and test changes where possible.

Conclusion

phpMyAdmin makes many MySQL and MariaDB administration tasks accessible through a browser. Once you understand the navigation, table structure, SQL editor and import/export tools, you can use it to inspect data, manage records and support website maintenance. The most important habit is to verify the selected database, use appropriate permissions and keep a tested backup before making changes that could affect a live site.

For more guidance, read our related articles on what MySQL is and why web hosting uses it, understanding cPanel and backing up your website.