Adding a column to a db table in phpMyAdmin
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

Adding a column to a db table in phpMyAdmin

Adding a column to a database table in phpMyAdmin

This article demonstrates how to add a column to a database table in phpMyAdmin.

Begin by accessing phpMyAdmin via cPanel.

  1. Select the database you wish to work with (listed in the left column when you first access phpMyAdmin).
  2. If your table does not exist yet, add a table.
  3. Click on the table you want to work with, which will take you to the list of columns in the table.
  4. Underneath the list of columns, where is says "add 1 column(s)" click the Go button to add 1 column.
  5. Define the column by entering the following information:
    1. Name the Column.
    2. Select the Type of data the column will hold.  Some common types include:
      • INT = Integer (a number without a decimal point)
      • CHAR = Characters (can hold text up to a specific length)
      • VARCHAR = Variable Length Characters (a text field that is not a fixed width).
      • TEXT = For holding large amounts of text.
      • DATE = Can only hold dates.
      • DATETIME = Can hold both a date and a time.
      • (See the MySQL Data Types article for more options.)
    3. Define the Length/Values if required.  For example, the CHAR type will require you to specify the maximum number of characters allowed.
    4. The other fields are optional.
  6. Click on the Save button when complete.

If successful, a message will appear stating your table was altered successfully and your new column will appear in the list of columns.

Knowledgebase Article 206,729 views bookmark tags: databases mysql phpmyadmin


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

A tutorial on how to perminately delete columns from your mySQL database using phpMyAdmin
Knowledgebase Article 188,456 views tags: Plesk cpanel databases mysql phpmyadmin

This article will show you how to rename a database table in phpMyAdmin.
Knowledgebase Article 322,415 views tags: databases mysql phpmyadmin

A step by step guide on how to manipulate data in your mySQL tables using phpMyAdmin
Knowledgebase Article 199,078 views tags: databases mysql phpmyadmin

Related Help Content

A guide to duplicating a MySQL database using phpMyAdmin
Knowledgebase Article 242,691 views tags: databases mysql phpmyadmin

A repository of information on how you can manage your database by using the phpMyAdmin interface.
Knowledgebase Article 375,448 views tags: commands database mysql phpmyadmin

How do I import a backup of my database (.sql file) using phpMyAdmin?
Knowledgebase Article 781,624 views tags: database mysql phpmyadmin

Step by step directions on how you can search your database using phpMyAdmin
Knowledgebase Article 184,890 views tags: Plesk cpanel databases mysql phpmyadmin

Guidance on adding tables to your mySQL database in phpMyAdmin
Knowledgebase Article 114,349 views tags: mysql phpmyadmin

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database.
Knowledgebase Article 873,681 views tags: creation database mysql

A guide on performing a standard SQL query using the phpMyAdmin interface
Knowledgebase Article 191,554 views tags: databases mysql phpmyadmin

How to Restore your MySQL Database?
Knowledgebase Article 383,878 views tags: admin database mysql php phpmyadmin restore

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here