1. Knowledge Base
  2. >
  3. Results
  4. >
  5. Article

Creating MySQL tables in phpMyAdmin

  1. Log in to your Hosting Dashboard.
  2. In the left sidebar, click MySQL Management.
    MySQL Management link
  3. Click the Manage link on the far right side of the Database you are working on.
    Database manage link
  4. Scroll down and click on phpMyAdmin
    phpmyadmin link
  5. On the left sidebar, click the link of the database you want to create a table on.
  6. Click New.
    New tables
  7. Enter your Table name and the number of columns you want to configure (you can always add more later).
  8. Click Go
    table name and number of columns
  9. The page for table management displays. Enter the following information for each field in the table:
  • Name the Column
  • Select the Type of data that 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.)
  • Define the Length/Values if required. For example, the CHAR type will require you to specify the maximum number of characters allowed
The other fields are optional:
  • Extra: Select whether you want the field to automatically go in increments. For example, you might want to auto-increment a field so that each of the records will have a different number associated with it.
  • Default: Enter a value if you want the field to have a default value.
  • Null: Select not null for fields that must have a value entered and null for fields that can be left empty
  • Attributes: Select an attribute. For more information, review the MySQL site's Documentation section
  • Collation: Optionally, select a column collation. A collation is a set of rules for comparing characters in a character set. For more information, review the MySQL site's Documentation section. Select whether you want the field to be Primary, Index or Unique. For more information, review the MySQL site's Documentation section.
  1. Select the full-text checkbox if you want full-text indexing and searching on the column.
  2. Note: Full-text indexes can only be used with MyISAM tables and can only be created for CHAR, VARCHAR, or TEXT columns. For more information, review the MySQL site's section on Full-Text Search Functions.
  3. Optionally, enter any table comments that you might want.
  4. Select the table type. For more information, review the MySQL site's Documentation section.
  5. Optionally, select a table collation.
  6. If you want to add additional fields, enter the number to add, and then click Go.
  7. When you are done with your table settings, click Save to create the table and display the code for it.
yieldmanager

Thanks for visiting! Since you landed on this page of our website, we wanted to let you know you visited one of our paid endorsers while researching your purchase. close