Download presentation
Presentation is loading. Please wait.
1
MySQL and PHPMyAdmin
2
Make sure your MySQL service is running
Make sure your MySQL service is running. If using XAMPP, open the control panel. If the button for MySQL says Start, click it to start the service.
3
Open PHPMyAdmin (PMA) by clicking the Admin button or by navigating a browser to
4
If needed, resolve the root having no password issue
If needed, resolve the root having no password issue. I followed Method 2 found at
5
Method 2 User='root'
6
Create a new database by clicking on the Databases tab
7
Where it says Create database, enter a name and click on the Create button
8
Check your new database and click on the Check Privileges link
9
Under New click on the Add user link
10
Enter a username and password (twice)
11
Scroll down. Note the Grant all privileges on database “dbstatcapital” is pre-selected. Click Go.
12
This database will have a single table (for now
This database will have a single table (for now?) with state-capital data like that found at Let us say that we will use the Abbr. column as the primary key that will uniquely identify each row/record. Note there are ten columns.
13
Create a table to hold the data. Give it a name
Create a table to hold the data. Give it a name. Select a number of columns and click Go.
14
Start filling in the column names
Start filling in the column names. Make the Abbr the primary key under the Index drop-down.
15
Finish entering the columns. Enter appropriate types. Click Save.
At first I thought Year was the appropriate type for StateDate and CapitalDate. But the dates were too early to be easily accepted at years.
16
Result of saved file
17
Add data by going to the Import tab. Browse for the csv file provided
Add data by going to the Import tab. Browse for the csv file provided. Choose CSV from the format dropdown. Scroll down and click Go. Changed automatically for me
18
Result of import
19
Looking at results in Browse tab.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.