HostMonster Web Hosting Help

How to add tables to a database in phpMyAdmin

This article demonstrates how easy it is to add a variety of tables to your mySQL database in phpMyAdmin.

Begin by accessing phpMyAdmin via cPanel.

  1. Select the database you wish to work with.
  2. Inside the structure tab, under the list of tables (if any), there will be a place to "Create tables on database."
  3. Where is says Name, enter the name of your table.
  4. Where it says Number of Columns enter the number of columns you want to configure right now (you can always add more later).
  5. Press the Go button to proceed to the next screen.
  6. Define the column(s) 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.
  7. Click on Save when you are finished defining your columns.

A message indicating your table has been created will appear, and your new table will now appear on the list of tables in the database. You can click on the table to see the columns that were created for that table.

Knowledgebase Article 15,336 views bookmark tags: mysql phpmyadmin (updated 899 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 900 days ago)
Knowledgebase Article 37,386 views tags: Plesk cpanel databases mysql phpmyadmin

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

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

Related Help Content

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

How to repair and optimize your database using phpMyAdmin: (updated 1092 days ago)
Knowledgebase Article 189,000 views tags: database mysql optimizing repairing slow speed

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

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

A guide to duplicating a MySQL database using phpMyAdmin (updated 900 days ago)
Knowledgebase Article 30,693 views tags: databases mysql phpmyadmin

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

A tutorial on how to perminately delete columns from your mySQL database using phpMyAdmin (updated 898 days ago)
Knowledgebase Article 37,588 views tags: Plesk cpanel databases mysql phpmyadmin

How to Restore your MySQL Database? (updated 1088 days ago)
Knowledgebase Article 155,622 views tags: admin database mysql php phpmyadmin restore