×

Top 25 MySQL Interview Questions for 2024

1) What is MySQL?

MySql is defined as multi-user DBMS which is built and distributed my MySQLab now acquired by Oracle Co.

2) Enlist the features of MySQL.

  • Cross-Platform Support
  • Wide range of Interface for Application Programming
  • Pre-defined Procedure e.g. Triggers and Cursors.

3) What is the default port of MySQL.

Default Port: 3306.

4) Give some MySQL Function.

NOWO
CURRDATEO
CONCAT (X, Y)
DATEDIFF (X, Y)

5) What are the different tables present in MySQL?

  • MyISAM
  • Heap
  • Merge
  • INNO DB
  • ISAM

6) Differentiate between SQL and MySQL.

SQL is a Standard Query Language which is designed to access the database like MySQL, Oracle DBA. MySQL is a database which stores data in a defined architecture on which language as DDL, DML, DCL can be performed.

7) Describe HEAP Table in MySQL.

HEAP is a memory structure used to store high speed temporary storage.

8) What are the set operators used in MySQL.

  • UNION and UNION ALL
  • INTERSECT
  • MINUS

9) Describe MySQL Constraint in MySQL.

NOT NULL CONSTRAINT: It defines the value stored cannot be null for a particular column in the table of a database. PRIMARY KEY CONSTRAINT: When a primary key is generated for a table then that key is used to describe any relation is defined as primary key constraint. FOREIGN KEY CONSTRAINT: It allows foreign keys to let you cross-reference related data across tables, which help keep this spread-out data consistent.

10) Enlist the drivers required for MySQL?

  • PHP Driver
  • JDBC Driver
  • ODBC Driver
  • C WRAPPER
  • PYTHON Driver
  • PERL Driver
  • RUBY Driver
  • CAP11PHP Driver
  • Ado.net5.mxj

11) What is MySQL globalization?

  • MySQL characterset
  • MySQL collation

12) Differentiate between DROP and TRUNCATE ?

DROP: Completely Delete DATA as well as STRUCTURE from the table whereas TRUNCATE: It Delete the DATA but PRESERVES the structure.

13) Enlist the type of Join in MySQL.

INNER JOIN or JOIN
OUTER JOIN
LEFT JOIN
RIGHT JOIN
FULL JOIN

14) Enlist the type of Trigger possible in MySQL.

  • Before Insert
  • After Insert
  • Before Update
  • After Update
  • Before Delete
  • After Delete

15) What is BLOB and TEXT in My SQL?

BLOB (Binary Large Object): It stores variable amount of data and is of 4 types.
TINYBLOB
BLOB
MEDIUMBLOB
LONGBLOB
TEXT: It is a case insensitive BLOB having non-binary string (character string). It is of 4 types.
TINYTEXT
TEXT
MEDIUMTEXT
LONGTEXT

16) What is the storage engine for MySQL?

Storage tables are named as table types. The data is stored in the files using multiple techniques such as indexing, locking levels, capabilities and functions.

17) What is the difference between primary key and candidate key?

Primary key in MySQL is use to identify every row of a table in unique manner. For one table there is only one primary key. The candidate keys is used to reference the foreign keys.

18) What is the use of ENUM in MySQL?

ENUM in MySQL will limit the values that can go into a table. For instance; the user can create a table giving specific month values and other month values would not enter into the table.

19) How to resolve the problem of data disk that is full?

When the data disk is full and overloaded the way out is to create the soft link and move the .frm as well as the .idb files into that link location.

20) What are the storage models of OLAP?

The storage models in OLAP are:
MOLAP
ROLAP
HOLAP

21) Explain transaction in MySQL?

Transaction is logical unit of work where either all or none of the steps should be performed.

22) What is Drool?

Drool is the BRMS (Business Rule Management Systems) that has forward and backward chaining inference based rule engine. There are 2 major components of drool are:
  1. Authoring:This process comprises of the formation of Rules files which is .DRL files.
  2. RuntimeThis process comprises of the formation of occupied memory and handling the initiation.

23) What is JBoss Enterprise BRMS?

JBoss Enterprise BRMS is the reasoning engine for policy and rule developments for business. It also manages access and changes.

24) What are federated tables?

Federated tables allow access to the tables located on other databases on other servers.

25) What is ISAM?

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

Related Topics

Top 10 Java Swing Interview Questions for 2024

1) What is Java Swing? It is a part of JFC (Java Foundation Classess) that is used to create window-based applications. Java Swing components are platform independent and lightweight . 2) What is...

3 minutes read.

Top 30 AngularJS Interview Questions and Answers for 2024

Most Frequently asked AngularJS Interview Questions and Answers for Fresher 1) Describe Angular JS ? It is a powerful framework of JavaScript. AngularJS is used to design Rich Internet Application. This framework...

5 minutes read.

Top 15 ASP.NET MVC Framework Interview Questions for 2024

1) What is ASP.NET MVC Framework? ASP.NET MVC framework is a software architecture pattern for developing web applications. It is used to split the application's implementation logic into three components: models,...

4 minutes read.

Top 16 WebGL Interview Questions for 2024

1) What is WebGL? WebGL stands for Web Graphics Library. It is a JavaScript API that is used for rendering 3D graphic in any compatible web browser. It is written in...

3 minutes read.

Top 15 Cordova Interview Questions for 2024

Top 20 Cordova Interview Questions and Answers for Freshers 1) What is Cordova? Cordova is a mobile application development framework. Cordova allows building mobile application using HTML5, CSS3, and JavaScript. Cordova is...

3 minutes read.

Top 30 TurboGears Framework Interview Questions for 2024

1) What is TurboGears Framework? TurboGears is a Python Framework. It is used to create rapid web application. It consists of several WSGI (Web Server Gateway Interface) components. It is developed...

5 minutes read.

Top 30 Web Service Interview Questions for 2024

1) What is a Web Service? Web service is a client server application or component. It is used for communication. It is way to communicate between two devices over network. In another word...

5 minutes read.

Top 15 Pure CSS Interview Questions for 2024

1) What is Pure CSS? Pure is a CSS (Cascading Style Sheet) framework. It is a collection of small set of responsive CSS modules. We can integrate it to any web...

5 minutes read.

Top 15 VBA Interview Questions for 2024

1) What is VBA? VBA stands for Visual Basic Application. It is an event-driven programming language. It is mainly used with Microsoft Office applications such as MS -Excel, MS-Word and MS-Access. 2)...

3 minutes read.

Top 30 Flex Interview Questions for 2024

1) What is Flex? Flex is an open source framework which is used to build applications for mobile, browser and desktop. It provides FLEX SDK consisting of the Flex class library, Flex...

4 minutes read.

Top 30 Drupal Interview Questions for 2024

1) What is Drupal? Drupal is an open source CMS (Content Management System) framework. It is written in php and provides rich set of tools to create web sites. 2) What are...

4 minutes read.

Top 15 ExpressJS Interview Questions for 2024

1) What is ExpressJs? Express Js is a framework for node.js which is light-weight and fast. It is used to develop web and mobile applications. 2) What are the features of ExpressJs? Following...

4 minutes read.

Top 15 Highcharts Interview Questions for 2024

1) What is Highcharts? Highcharts is a JavaScript based charting library. It is used to enhance web applications by adding interactive charting capability. Highcharts supports a wide range of charts. Charts are drawn using...

2 minutes read.

Top 15 NodeJS Interview Questions for 2024

1) What is NodeJs? NodeJs is open source JavaScript based feamework used to develop I/O intensive web application. It is collections of JavaScript library and runtime environment. It is used to...

3 minutes read.

A to Z Interview Questions

ABCDEFGHIJKLMNOPQRSTUVWXYZ Interview Questions and Answers List A AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions B Blockchain Interview...

3 minutes read.

Top 28 Scala Interview Questions for 2024

1) What is Scala? Scala is a functional and object-oriented programming language. It is used to develop web application, mobile application, enterprise application, desktop based application etc. Everything in Scala is in object...

4 minutes read.

Top 28 Angular 2 Interview Questions for 2024

1) What is Angular 2? It is an open source JavaScript framework which is used to build web applications in JavaScript and HTML. It is also used to overcome obstacles encountered while...

4 minutes read.

Top 15 JavaFX Interview Questions for 2024

1) What is JavaFX? JavaFX is a software platform for creating desktop applications or internet application. It uses java library. It can run various devices such as Desktop Computer, Mobile, TVs...

3 minutes read.

Top 30 JSF Interview Questions for 2024

1) What is JSF? JSF stands for Java Server Faces is a Java-Based web application framework. JSF (Java Server Faces) provides a facility to connect UI widgets with data sources. 2) What are...

4 minutes read.

Top 20 Java Programming Coding Interview Questions for 2024

Coding is an integral part of any programming language. It is the most important phase of an interview. Interviewee checks the capability of thinking of any particular. I think one...

13 minutes read.