PhpMyAdmin is web base software used for creating and maintaining MySQL databases. This tutorial is designed to get you starting with the basics of phpMyAdmin.
You can access your MySQL account using phpMyAdmin using the link provided to you --something like below where my-domain.ca is your domain name
http://www.my-domain.ca/phpmyadmin/
When you click on the link above, a
dialog box will prompt you for a username and password. This will be
the
username and password given you when we set it up for you.
The left-hand frame in phpMyAdmin is used for navigation.You will see your database displayed here (in this case called mydomain). As you create tables, they will show below this.
Click on your database the navigation frame and a new window will appear on the right hand side.
Now enter the names and attributes of our table fields. Enter the following information as above:
Field | Type | Length | Default |
Extra |
id | int | 6 | 0 |
auto_increment |
name | char | 100 | ||
telephone | char | 50 | ||
birthday | char | 50 |
Once you've entered all the values, click Save. A screen like this will appear.
Note that you can use Drop to delete a table or fields.
When you are ready we suggest you check out all of the options on this page.
Inputting data into the table.
Click the tab labeled "Insert" - and another window should appear, like this.
Note - if you ever get lost with phpMyAdmin navigation click "Home" in the left hand nav bar and start again.
Now click Save and the record is saved to the people table.
The previous window reappears with the SQL command for the insert. You can keep adding recordsby re-selecting Insert".
For multiple records, you can select the "Insert another new row" radio button on the input form.
When you've finished entering several records into the table, you can check them by clicking on the Browse tab. You can click on individual records for editing or deleting.
Backup your data
You "don't know what you've got 'til its gone"!
- Click on your database name in the left hand navigation bar
- Click on EXPORT (top tab)
- Highlight the table/s you want to back up
- Select STRUCTURE and DATA radio button
- Select "Enclose table and field names with backquotes"
- Select "Save as file" and "zipped" check boxes
- Click "Go" and a zipped archive file will be generated.
Well done! - you've created a database, a table and fields, entered in a few records, viewed the records, edited and perhaps deleted some of them and practised backing up.
Tidak ada komentar:
Posting Komentar