MySQL Programming

  Home  Databases Programming  MySQL Programming


“Learn MySQL Programming with interview questions and answers”



110 MySQL Programming Questions And Answers

1⟩ What Is mSQL?

Mini SQL (mSQL) is a light weight relational database management system capable of providing rapid access to your data with very little overhead. mSQL is developed by Hughes Technologies Pty Ltd.

MySQL was started from mSQL and shared the same API.

 170 views

2⟩ What Is SQL?

SQL, SEQUEL (Structured English Query Language), is a language for RDBMS (Relational Database Management Systems). SQL was developed by IBM Corporation.

 190 views

4⟩ What Is MySQL?

MySQL is an open source database management system developed by MySQL AB, http://www.mysql.com.

 189 views

5⟩ What Is Rollback?

Rollback is a way to terminate a transaction with all database changes not saving to the database server.

 175 views

6⟩ What Is Transaction?

A transaction is a logical unit of work requested by a user to be applied to the database objects. MySQL server introduces the transaction concept to allow users to group one or more SQL statements into a single transaction, so that the effects of all the SQL statements in a transaction can be either all committed (applied to the database) or all rolled back (undone from the database).

 189 views

7⟩ What Is Commit?

Commit is a way to terminate a transaction with all database changes to be saved permanently to the database server.

 194 views

8⟩ What Is CSV?

CSV (Comma Separated Values) is a file format used to store database table contents, where one table row is stored as one line in the file, and each data field is separated with comma.

 186 views

9⟩ What Is BDB (BerkeleyDB)?

BDB (BerkeleyDB) is transaction safe storage engine originally developed at U.C. Berkeley. It is now developed by Sleepycat Software, Inc. (an Oracle company now).

 200 views

10⟩ What Is InnoDB?

InnoDB is a transaction safe storage engine developed by Innobase Oy (an Oracle company now).

 200 views

11⟩ What Is ISAM?

ISAM (Indexed Sequential Access Method) was developed by IBM to store and retrieve data on secondary storage systems like tapes.

 180 views

12⟩ How To Install MySQL?

MySQL is an open source database management system developed by MySQL AB, http://www.mysql.com. You can download a copy and install it on your local computer very easily. Here is how you can do this:

* Go to http://dev.mysql.com/downloads/mysql/5.0.html.

* Select the "Windows" and "Without installer" version.

* Find a mirror site and download "mysql-noinstall-5.0.24-win32.zip".

* Unzip the file, you will get a new sub-directory, ".mysql-5.0.24-win32".

* Move and rename this sub-directory to mysql.

* The installation is done and your MySQL server is ready.

 207 views

13⟩ What Is MyISAM?

MyISAM is a storage engine used as the default storage engine for MySQL database. MyISAM is based on the ISAM (Indexed Sequential Access Method) concept and offers fast data storage and retrieval. But it is not transaction safe.

 183 views

14⟩ What Is Union?

Join is data retrieval operation that combines multiple query outputs of the same structure into a single output.

 185 views

15⟩ What Is Join?

Join is data retrieval operation that combines rows from multiple tables under certain matching conditions to form a single row.

 198 views

16⟩ How To Start MySQL Server?

If you want to start the MySQL server, you can run the "mysqld" program in a command window as shown in the following tutorial:

>cd mysqlin

>mysqld

"mysqld" will run quietly without printing any message in you command window. So you will see nothing after entering the "mysqld" command. You should trust "mysqld" and believe that MySQL server is running ok on your local computer now.

Another way to start the MySQL server is double-click mysqlinmysqld.exe on your file explorer window.

 217 views

18⟩ What Is Index?

An index is a single column or multiple columns defined to have values pre-sorted to speed up data retrieval speed.

 188 views

19⟩ What Is Foreign Key?

A foreign key is a single column or multiple columns defined to have values that can be mapped to a primary key in another table.

 178 views

20⟩ How Do You Know the Version of Your MySQL Server?

If you want to know the version number of your MySQL server, you can use the "mysqladmin" program in a command window as shown in the following tutorial:

>cd mysqlin

>mysqladmin -u root version

mysqladmin Ver 8.41 Distrib 5.0.24, for Win32 on ia32

Copyright (C) 2000 MySQL AB & MySQL Finland AB

& TCX DataKonsult AB

...

Server version  5.0.24-community

Protocol version 10

Connection localhost via TCP/IP

TCP port 3306

Uptime: 25 min 9 sec

Threads: 1 Questions: 2 Slow queries: 0 Opens: 12

Flush tables: 1 Open tables: 6

Queries per second avg: 0.001

The output in the above example tells you that the version number is 5.0.24.

 189 views