HostMonster Web Hosting Help

Dropping columns from a database table in phpMyAdmin

Summary

In this tutorial we're going to be taking a look at how to drop (permanently delete) columns from a database table in phpMyAdmin.

It is recommended that you make a backup before you perform any destructive actions, such as dropping database columns. Without a backup, there will be no way to restore anything mistakenly deleted.
 
WARNING!  Dropping columns in your database permanently deletes the column and all the data stored in that column.  Make sure that none of your applications or websites rely on information contained in the column(s) you are deleting.

Begin by accessing phpMyAdmin via cPanel or Plesk.

  1. Select the database you want to work with (in the left column when you first access phpMyAdmin).
  2. Select the table you want to work with.
  3. Place a check mark next to the column(s) you wish to drop (delete permanently).
  4. Click on the Drop button underneath the list of columns.
  5. It will ask you if you really want to do this.  Review what will be dropped to make sure the correct columns are being deleted.  If it is correct, click on the Yes button to drop the columns.  Otherwise click No.

A message stating your SQL query was executed successfully will be displayed and your columns will be gone.

Knowledgebase Article 11,344 views bookmark tags: Plesk cpanel databases mysql phpmyadmin (updated 460 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Instructions on deleting tables from your database using phpMyAdmin (updated 462 days ago)
Knowledgebase Article 13,012 views tags: Plesk cpanel databases mysql phpmyadmin

Step by step directions on how you can search your database using phpMyAdmin (updated 461 days ago)
Knowledgebase Article 5,557 views tags: Plesk cpanel databases mysql phpmyadmin

A step by step guide on how to manipulate data in your mySQL tables using phpMyAdmin (updated 461 days ago)
Knowledgebase Article 16,425 views tags: databases mysql phpmyadmin

Related Help Content

A guide to duplicating a MySQL database using phpMyAdmin (updated 461 days ago)
Knowledgebase Article 20,520 views tags: databases mysql phpmyadmin

Instructions on changing the name of your database using phpMyAdmin (updated 462 days ago)
Knowledgebase Article 10,391 views tags: cpanel databases mysql phpmyadmin

Instructions on adding a column to your database in phpMyAdmin (updated 450 days ago)
Knowledgebase Article 23,062 views tags: databases mysql phpmyadmin

A guide on renaming the tables inside of your database using phpMyAdmin (updated 461 days ago)
Knowledgebase Article 5,855 views tags: databases mysql phpmyadmin

A repository of information on how you can manage your database by using the phpMyAdmin interface. (updated 462 days ago)
Knowledgebase Article 112,294 views tags: commands database mysql phpmyadmin

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database. (updated 448 days ago)
Knowledgebase Article 311,082 views tags: creation database mysql

How do I import a backup of my database (.sql file) using phpMyAdmin? (updated 460 days ago)
Knowledgebase Article 94,988 views tags: database mysql phpmyadmin

Guidance on adding tables to your mySQL database in phpMyAdmin (updated 461 days ago)
Knowledgebase Article 8,169 views tags: mysql phpmyadmin