Creating tables in a database with phpMyAdmin

Posted:  May 14th, 2018

 

This tutorial assumes you've already logged in to phpMyAdmin. Now let's learn how to create a table within a database.

 

1) Select your database. In this example, we will use the demo1234_members database.

KEK

2) Enter a Name for our new table..

KEK

3) Then enter the number of fields this new table is to have. Click Go.

KEK

4) Now enter the details of each field within the new table.

KEK

5) We also want this first field to be the Primary key that will be automatically filled in (auto_increment) when new entries are added to the table.

 

The first field will be called id, and it will be an integer that's 4 characters in length.

KEK

6) Selecting this option makes the id field the Primary key in the table.

KEK

7) The remaining fields will be CHAR (character) fields. Be sure the length is set long enough to accomodate the fields.

KEK

8) When finished, click Save.

KEK

9) Log out of the server once you are done.