My-Sql Interview Questions and Answers

how to list or view all databases from the mysql server?
mysql> show databases;
Post comment
Thanks for your comment.!
Write a comment(Click here) ...
What is MySQL ?

MySQL (pronounced 'my ess cue el') is an open source relational database management system (RDBMS) that uses Structured Query Language (SQL), the most popular language for adding, accessing, and processing data in a database. Because it is open source, anyone can download MySQL and tailor it to their needs in accordance with the general public license( its a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server.

how to list or view all databases from the mysql server?
mysql> show databases;
How Switch (select or use) to a database?
mysql> use databasename;
How To see all the tables from a database of mysql server?
mysql> show tables;
What are some good ideas regarding user security in MySQL?
There is no user without a password. There is no user without a user name. There is no user whose Host column contains % (which here indicates that the user can log in from anywhere in the network or the Internet). There are as few users as possible (in the ideal case only root) who have unrestricted access.
Explain advantages of InnoDB over MyISAM?
Row-level locking, transactions, foreign key constraints and crash recovery.

Explain advantages of MyISAM over InnoDB?
Much more conservative approach to disk space management - each MyISAM table is stored in a separate file, which could be compressed then with myisamchk if needed. With InnoDB the tables are stored in tablespace, and not much further optimization is possible. All data except for TEXT and BLOB can occupy 8,000 bytes at most. No full text indexing is available for InnoDB.
The Main Features of MySQL?

The following list describes some of the important characteristics of MySQL: 
Fully multi-threaded using kernel threads. That means it can easily use multiple CPUs if available. 
C, C++, Eiffel, Java, Perl, PHP, Python and Tcl APIs. Works on many different platforms. 
Many column types: signed/unsigned integers 1, 2, 3, 4, and 8 bytes long, FLOAT, DOUBLE, CHAR, 
Very fast joins using an optimized one-sweep multi-join. Full operator and function support.
Very fast B-tree disk tables with index compression. Up to 32 indexes per table are allowed.
Written in C and C++. Tested with a broad range of different compilers.
A very fast thread-based memory allocation system. 
No memory leaks. Tested with a commercial memory leakage detector (purify). 
Includes myisamchk, a very fast utility for table checking, optimization, and repair.

Latest Updates

General Computer Knowledge

What kind of material does ‘IC’ in computers made of?


The force required to produce an acceleration of 4 m/s2 in an object of mass 9 kg is?


Some seeds have hooks and spines. It helps the seeds to__________?


Which of the following modes of heat transfer is faster?


Which of the following reproduces from underground stem?


Lichens are a symbiotic association of?


The unit of relative density is?

Problems on Ages

The ages of Gyanendra and Jitendra are in the ratio of 12:7 respectively. After 6 years, the ratio of their ages will be 3:2 respectively . find the difference in their ages?

Time and Work

X can do a piece of work in 20 days, while Y can do in 10 days. If Y worked at it for 8 days,then X can finish the remaining work in______.?


In a certain code, BELIEF is written as AFKKDI. How is SELDOM written in that code?

Ratio and Proportion

Find the mean proportional between 8 and 32 ?


A certain company has 120 employees who are engineers. Here, engineers constitute 30% of its work force. How many people are employed in the company?


From a well-shuffled deck of 52 cards, one card is drawn at random. Find the probability of getting a face card?

Profit and Loss

What percent profit is made by selling an article at a certain price if by selling at 2/3rd of that price, there would be a loss of 30%?


Among five people with monthly income of Rs. 14000, Rs. 25000, Rs. 15000, Rs. 18000 and Rs.49000, how many will have income less than the mean income of the five people?

Problems on Trains

A train 100 meters long moving at a speed of 40 km/hr crosses a train 130 meters long coming from the opposite direction in 6 seconds. Find the speed of the second train?

Permutation and Combination

In how many different ways can the letters of the word ‘DESIGN’ be arranged so that the vowels are at the two ends?


If sinA= 8/17 and cosA=15/17, then cotA=?