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

XAMPP

The document provides a guide on using XAMPP, specifically focusing on starting the Apache and MySQL servers. It explains how to create and manage databases and tables using SQL commands, including creating a database named 'University' and inserting values into tables. Additionally, it highlights the importance of data types and how to query data from tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

XAMPP

The document provides a guide on using XAMPP, specifically focusing on starting the Apache and MySQL servers. It explains how to create and manage databases and tables using SQL commands, including creating a database named 'University' and inserting values into tables. Additionally, it highlights the importance of data types and how to query data from tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

XAMPP:

When opening XAMPP Control Panel the interface will be looks like this.

Now we will need only the Apache and MySQL servers running.

Just click to start menu.

After starting the Apache and MySQL server then we just need to start the ADMIN button besides MySQL, and it will
open a localhost for your running browser.
Where is the Dashboard:

Form the SQL option we can easily create a New Database, table and insert values to the table in the Database.

1. Create a Database (University)


We can do everything by SQL command and we should know this.

Query: CREATE DATABASE (database name);

Example: CREATE DATABASE University;


We Also Can DELETE Database by Quering: DROP DATABASE (database_name);

Query:

CREATE TABLE Table_Name

column_1 data_type(size),

column_2 data_type(size),

column_3 data_type(size)

);

NOTE: INT data_type can only hold 10 characters so for long values we have to use BIGINT.

After creating table with columns we can insert values to the table.

Query:

INSERT INTO Table_Name (column_1, column_2, column_3, Colmun_4


VALUES (value_1,’value_2’,’value_3’);

NOTE:

For string values we have to put the satrigns in single or multiple quote.

To see the table we can query: SELECT * FROM ‘students_details’

THE END

You might also like