You are on page 1of 6

Assignment on

Practical Application of MySQL


Assigned By

Md. Monzur Morshed Professor, Department of Accounting & Information Systems Faculty of Business Studies University of Dhaka

Submitted By

Md. Shamim Raihan M.B.A (15th Batch) Section: B ID: 15-132 Department of Accounting & Information Systems University of Dhaka

1|Page

Prologue
MySQL is an open source relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. It is named after co-founder Michael Widenius' daughter, My. The SQL phrase stands for Structured Query Language. MySQL monitoring tools are very important since My SQL is perhaps the most well known open source database. This software can help effectively deliver high performance standards regardless of whether a fast growing online business or an already established enterprise. Monitoring MySQL can be a rather complex task which a database administrator typically has to perform. Any technical problems herein can affect the whole business. This is because MySQL data can be very prone to errors that are hard to recover. Database administrators must constantly check status variables and analyze logged events to look for errors. On the basis of such data, the database administrators optimize server variables.

Limitations
Like other SQL databases, MySQL does not currently comply with the full SQL standard for some of the implemented functionality, including foreign key references when using some storage engines other than the 'standard' InnoDB. Triggers are currently limited to one per action / timing, i.e. maximum one after insert and one before insert on the same table. There are no triggers on views.

2|Page

Applications of MySQL
MySQL has its wide range of application in different field. Her for simplicity, a simple demonstration is shown using different command of MySQL.

CREATE DATABASE:
Here CREATE DATABASE APEX command is used to create a database named APEX.

MySQL View:

SHOW DATABASES:
In this part SHOW DATABASES command is used to see how many databases are there. Here shown databases are MBA, PAYROLL, TEST ETC.

MySQL View:

3|Page

DROP DATABASE
Using DROP DATABASE MMN command MMN database is droped.

MySQL View:

USE DATABASE
Using USE DATABASE APEX Command APEX is ready to use.

MySQL View:

CREATE TABLE
SUPPLIERS table is created in the database of APEX. The command use here to create the table is CREATE TABLE SUPPLIERS(ID INT(10) NOT NULL, NAME VARCHAR(30), PRODUCT VARCHAR(30), ADDRESS VARCHAR(30), PRIMARY KEY (ID));

MySQL View:

4|Page

INSERT VALUES
The values of the SUPPLIERS table are inserted as follows;

MySQL View:

SELECT COMPLETE TABLE


SELECT the complete table command may shown in the folloing way in MySQL .

MySQL View:

Selecting Specific Rows and Columns


To specific rows or column the command used in following ways. The MySQL view is as follws:

MySQL View:

5|Page

Deleting and Updating Rows


To delete and update certain rows and column or values the command may be written as follows. The MySQL view is as follows:

MySQL View:

Hence these are the basic operations of MySQL.

Thanks

6|Page

You might also like