You are on page 1of 11

Introduction to phpMyAdmin

phpMyAdmin: An Introduction Section

1: How to login to phpMyAdmin

To access phpMyadmin:

1. Type in the following URL in any browser and press Enter:

2. https://genesis.usp.ac.fj/phpmyadmin/
3. Enter your MySQL database username and password. Your username is your Student ID, and the
default password was your surname (with first letter in uppercase).

NOTE: If you had changed your database password, then use your new database password.
Otherwise, use your surname (with the first letter in uppercase).

4. Click on Go

1
Introduction to phpMyAdmin

5. You will see the following screen:

5. Click on your database (see figure above).

6. You should see all tables in your database:

2
Introduction to phpMyAdmin

Note: You will not see any table if you have not created any yet

Tables in my database

Section 2: Creating a new table


Note: Make sure that you have selected your database from the left navigation section of the
phpMyAdmin page. Please see the previous section (steps 4-6 of the Section 1)

1. Click on Operations tab.

3
Introduction to phpMyAdmin

This is the name of the currently


selected database Click on operations

2. To create a table, type table name and number of fields. Click Go button.

3. Fields display for data entry


4. Enter field/attributes names and properties of the fields.
5. Click the Save button to create the new table.

4
Introduction to phpMyAdmin

Note:

InnoDB allows us to enforce referential integrity, while MyISAM, which is the default engine, does not
enforce it,

6. Click on your database and see the list of tables in your database

5
Introduction to phpMyAdmin

Section 3: Editing table structure

1. Click in Structure link or name of the table that you want to change.

2. In the following page you can make changes to the table.

Browse tab Structure tab SQL tab Insert tab


See or edit table See or edit table Write a SQL Use to insert
records/data. structure statement records in the table.

Change
attributes

Add
column(s)

Change
indexes

6
Introduction to phpMyAdmin

Section 4: Inserting data into a table

1. First click on the name of the table, e.g., the Manager table that we have just created.

2. Click on Insert tab.

3. Type in the values that you want to insert and click on Go.

7
Introduction to phpMyAdmin

4. You will see a confirmation of the success (or failure)

Section 5: See and edit data


1. Click on the name of the table.
2. Edit your data as required.

8
Introduction to phpMyAdmin

Section 5: Executing SQL statements


1. Click on the name of the database.
2. Click on the SQL tab

3. Type in your SQL statement


4. Click on Go

9
Introduction to phpMyAdmin

5. You will get the query results.

Query results

10
Introduction to phpMyAdmin

Section 6: Importing and Exporting

Section 7: Logging out


Click on the Logout icon in the left navigation section of the phpMyAdmin page.

Section 8: Other features


There are many other features in phpMyAdmin. You should spend some time learning these additional
features.

11

You might also like