PHPMyAdmin is a very powerful tool for managing your MySQL database(s).
First navigate to http://localhost/phpmyadmin you will be asked for a username and password. Login as 'root', you will have setup the password in the MySQL setup (if you used XAMPP you will have done it on the security page).
Once you are logged in you will see you will have a list of databases on the left panel, their will be a couple of ones already- you just want to find 'test' if its not there you can create it using the create database form on the front page (just leave everything except the name form empty).
1.jpg 99.85K
78 downloadsOnce test is open you can create a new table on 'test', I am going to create one called 'names' with 3 columns. Once you create it you will be asked to enter the information on each column. The first one is going to be called `ID` (without the two `) and its going to be a int, you will notice there are many other options just leave them- except for the index and Auto Increment (or AI) fields: change ID's index to 'primary' and tick the AI/ Auto Increment box.
2.jpg 48.09K
73 downloadsThe next one should be called 'first' and the type should be 'text' do the same for the second which should be called 'last'. Having confirmed these details press 'save'. You will then be sent to a page showing the 'structure' of the table, ID should be underlined.
3.jpg 88.68K
68 downloadsYou can start 'populating' the table by clicking insert (its on the bar along the top) and entering the details:
LEAVE ID BLANK it will automatically be set and can be used effectively, I recommend you add say 5 rows to the table.
Edited by bbqroast, 28 August 2011 - 11:20 PM.


Sign In
Create Account


Back to top









