How to manage MySQL databases

This article explains how to manage a MySQL database with phpMyAdmin from cPanel: searching data, reviewing the structure, editing fields, inserting or deleting records, creating tables, and importing or exporting.

What is it used for?

phpMyAdmin opens your hosting databases in your browser. From there you can:

  • Search for information within a table.
  • Review the structure and change the type or length of a field.
  • Insert or delete records.
  • Create tables.
  • Import or export data.

Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. Then go to Databases → phpMyAdmin.

Opening phpMyAdmin

  1. Log in to cPanel.
  2. Open Databases → phpMyAdmin.

phpMyAdmin en la sección Bases de datos de cPanel

  1. A new tab opens showing your account databases in the left column.
  2. Click on the database name and then on the table you want to manage.

Listado de bases de datos en phpMyAdmin

Important: changes apply immediately and affect the site using that database. Before editing the structure or deleting records, export a backup copy. The database name includes the cPanel account prefix, for example account_store.

Searching for information

  1. Open the database and click on the table.
  2. Go to the Search tab.
  3. Enter the value you want to find and click Go.

phpMyAdmin displays the matching rows.

Reviewing or modifying a field

  1. Open the table.
  2. Go to Structure.
  3. On the field, click Change.
  4. Adjust the type or length and save.

Only change the type if the data already stored fits within the new format.

Inserting or deleting records

  1. To add a row, open the table and go to Insert.
  2. Fill in the fields and click Go.
  3. To delete, go to Browse, check the row, and select Delete.

Creating a table

  1. Click on the database name, not on a table.
  2. Under Create table, enter the name and the number of columns.
  3. Define each column and save.

The new table will appear in the left column, under that database.

Importing or exporting

  1. Click on the database.
  2. To download a backup, go to Export and click Go. The browser downloads a .sql file.
  3. To upload a file, the database must already exist. Go to Import, choose the .sql or .sql.zip file, and click Go.

Common issues

  • I don't see any databases in the left column: first create one in cPanel → Databases → MySQL Databases.
  • phpMyAdmin won't open: allow pop-ups in your browser and try opening it again from cPanel.
  • I can't find the table: you are in a different database. Check the full name, including the account prefix.
  • The site broke after making a change: restore the .sql backup via Import into that same database.
  • The import does not finish: the file is usually larger than what phpMyAdmin allows. Compress it as a .sql.zip or split it.

If phpMyAdmin won't open, you can't see your database, or a change broke your site, open a support ticket from the client portal or reach out via the site's live chat.

  • administrar base de datos mysql, phpmyadmin
  • 54 Users Found This Useful
Was this answer helpful?

Related Articles

How to access a MySQL database remotely (home or work)

This article explains how to enable remote access to MySQL to connect from your computer, or...

MySQL databases

A MySQL database stores information for applications like WordPress, online stores, or forums. In...

Using Perl to access your MySQL database

This document contains information for connecting a Perl script with a hosting MySQL database...

Basic commands in MySQL

This article gathers basic MySQL commands to run in the SQL tab of phpMyAdmin. They are useful...

How to create a MySQL database

This article explains how to create a MySQL database in cPanel, how to import a .sql file, and...