Lab12 - Create Database using phpMyAdmin
Lab12 - Create Database using phpMyAdmin
We will try to create a database, a table with 2 fields in MySQL database. In order to
do it, we have to use phpMyAdmin. phpMyAdmin is an interface for us to create
database.
How to look at
the version of
phpMyAdmin
No table
exists
6. Create two fields, username and password, type varchar means user can
put alphanumeric character. 10 means 10 characters only. Press Save button.
7. Notice that azlanydb(0) has change to azlanydb(1), means it has 1 table.
The table login is listed below it. Click Insert tab to insert some data.
8. Enter one row of data, enter azlany in the username value, and azlany in
the password value. Press Go button. [Note: If you want to enter two rows of
data, deselect ignore checkbox and enter another data.]
9. The display the data in the table, click Browse tab.
--Finish--
Exercise:
1. Try to edit data in login table. Click the icon to edit data.
2. Try to delete existing data in login table. Click the icon to delete data.
3. Try to add more data in login table.
4. Create other new table in azlanydb database.
5. Try to copy your database to your thumbdrive. Go to c:\wamp\mysql\data. Find
the folder which has the same name with your database. Copy the folder to your
thumbdrive. [Note: The folder is your database and all tables will be in that
folder].
So whenever you want to change pc, copy the folder first, and paste it on the other
pc (same location), provided that wamp has been installed in that pc.