0% found this document useful (0 votes)
4 views

Steps_to_Create_Database_in_phpMyAdmin

This guide provides step-by-step instructions for creating a database in phpMyAdmin, including adding tables and inserting sample data. It details the process from opening phpMyAdmin to verifying data in the created tables. A sample database named 'school' with a 'students' table and specific columns is also included.

Uploaded by

piud9791
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Steps_to_Create_Database_in_phpMyAdmin

This guide provides step-by-step instructions for creating a database in phpMyAdmin, including adding tables and inserting sample data. It details the process from opening phpMyAdmin to verifying data in the created tables. A sample database named 'school' with a 'students' table and specific columns is also included.

Uploaded by

piud9791
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Steps to Create a Database in phpMyAdmin MySQL

This guide outlines the steps to create a database in phpMyAdmin, add tables, and insert sample

data. Follow these instructions carefully.

1. Open phpMyAdmin in your browser (usually at http://localhost/phpmyadmin).

2. Click on the 'Databases' tab at the top of the interface.

3. Enter a name for your database in the 'Create database' field and select a collation (e.g.,

utf8_general_ci).

4. Click on the 'Create' button to create the database.

5. Select the newly created database from the left panel.

6. In the 'Create table' section, enter the name of your table and the number of columns, then click

'Go'.

7. Define the columns for your table, specifying their names, data types (e.g., INT, VARCHAR),

lengths, and any additional options like primary keys.

8. Click 'Save' to create the table.

9. To add sample data, click on the 'Insert' tab for your table, fill in the fields, and click 'Go'.

10. Verify the data by clicking on the 'Browse' tab.

Sample Database and Table


Database Name: school

Table Name: students

Columns:

1. id (INT, Primary Key, Auto Increment)

2. name (VARCHAR(100))

3. age (INT)

4. grade (VARCHAR(10))
Sample Data:

id | name | age | grade

----------------------------------

1 | John Doe | 15 | 10th

2 | Jane Smith| 14 | 9th

3 | Alice Lee | 16 | 11th

You might also like