×

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 15 Apache Tapestry Interview Questions for 2024

1) What is Apache Tapestry? It is an open source web framework written in Java and can work under any application server. It is easily integrate with back ends like Hibernate...

2 minutes read.

Top 15 SQL Server Interview Question for 2024

1) Describe SQL Server? SQL server is a DataBase Management System developed by Microsoft. It was first introduced in year 2008 since, then many version has been introduced such as :...

2 minutes read.

Top 25 Oracle DBA Interview Question for 2024

1) What is an Oracle Instance? Database instance is a set of memory structures that manages database file. When an instance is started Oracle database allocate memory area called SGA (System...

4 minutes read.

Top 30 SQLite Interview Question for 2024

1) What is SQLite? It is an in-process library which implements self-contained, serverless, zero-configuration, transactional SQL database. 2) What datatype does SQLite supports? It uses dynamic typing and data can be stored in...

5 minutes read.

Top 32 Laravel Interview Questions for 2024

1) What is Laravel? Laravel is an open source PHP framework. It is used to design and develop web applications. It is based on MVC (Model-View-Controller) design pattern. It is created by Taylor...

6 minutes read.

Top 43 React Native Interview Questions for 2024

1. What is React Native? React native is an open-source JavaScript framework designed by Facebook for native mobile applications development. It is based on a JavaScript library-React. React Native saves your development...

11 minutes read.

Top 15 Struts Interview Questions for 2024

1) What are the Features of Struts 2? Features of Struts 2 are: Configurable MVC components POJO based actions AJAX support Integration support Various Result Types Various Tag support Theme and...

3 minutes read.

Top 15 Java Multithreading Interview Questions for 2024

1) What is Multithreading in Java ? It is a process of executing multiple threads simultaneously. It is used to achieve multitasking. It is mostly used in animation and games etc. 2) What are...

4 minutes read.

Top 31 Koa Interview Questions for 2024

1) What is Koa? Koa is a very small framework which provides us a minimal interface to build our applications. It is quite flexible and there are numerous modules available on...

4 minutes read.

Top 31 Flask Interview Questions for 2024

1) What is Flask? Flask is a micro web framework written in Python. It is based on Werkzeug toolkit and Jinja 2 template engine. 2) Who is the developer of Flask? Armin Ronacher...

6 minutes read.

Top 14 XSL Interview Questions for 2024

1) What is XSL? XSL stands for Extensible Stylesheet Language. It is used for expressing stylesheets like CSS which describes how to display an XML of given type. 2) What is XSLT? XSLT...

4 minutes read.

Top 15 Hadoop Interview Questions for 2024

1) What is Hadoop? Hadoop is a framework which is used to store and process Big Data. It is a distributed computing platform and helps in analyzing Big Data. 2) What are the...

2 minutes read.

Top 50 ReactJS Interview Questions for 2024

Top 50 Frequently asked ReactJS Interview Questions Q-1. What is React? Ans-1 React is a front-end JavaScript library which is developed by Facebook in 2011. It follows the component-based approach and allows us to...

15 minutes read.

Top 14 Web icon Interview Questions for 2024

1) What is Web Icon? Web Icon is a symbol that is used to represent a specific action or a capability on a webpage. It is used in documents as well...

5 minutes read.

Top 30 FuelPHP Framework Interview Questions for 2024

1) What is FuelPHPFramework? FuelPHP Framework is an open source web application and written in PHP scripting language. It is based on the HMVC (Hierarchical Model View Controller) design pattern. It was released...

6 minutes read.

Top 16 OpenStack Interview Questions for 2024

Most Frequently Asked OpenStack Interview Questions and Answers for Freshers 1. Describe OpenStack. OpenStack is designed as the future of cloud computing and developed as free and open-source software that facilitates a...

8 minutes read.

Top 15 AWS Interview Questions for 2024

1) What is AWS? AWS stands for Amazon Web Services. It is a cloud web hosting platform that offers flexible, scalable, reliable, easy-to-use, and cost-effective solutions. 2) What is Cloud Computing? It is...

2 minutes read.

Top 15 Java BeanUtils Interview Questions for 2024

1) What is Java BeanUtils? Java BeanUtils is a design pattern component of the Apache Commons. It facilitates architecture for Java language which is derived from JavaAPI. It helps to set...

3 minutes read.

Top 24 Clojure Interview Questions for 2024

1) What is Clojure? Clojure is a dynamic, general-purpose programming language. It is simple, coherent and powerful tool. It is based on Lisp Programming language. 2) Which platform is used to run...

4 minutes read.

Top 25 DB2 Interview question for 2024

1) Give breif detail about DB2? DB2 is a Relational Database Management System developed by IBM. It supports Object Oriented features and non-relational structures with XML. 2) Enlist the types of datatypes...

3 minutes read.