In what cases do we need to analyze databases?
What are the difficulties of DBMS Analysis?
What are the five layers of a MySQL database?
What are the MySQL default data directories for Linux and Windows?
How can you locate the MySQL config?
How does the MySQL Data Directory Structure looks like?
What are the two most common MySQL Storage Engine and what are they for?
MySQL can use different storage engines. Two most popular engines are InnoDB & MyISAM.
Features are:
What are FRM files?
Each table has a .frm file. Used to define the format of a table. File name is also the table name. Normally it is 2GB or 4GB in size.
Other important information in .frm file:
How large is the FRM header?
64 Byte
At what offset does the FRM file key information start?
0x1000
What are the important information of the .frm File Key Information Section?
What are the important information of the .frm File Column Information Section?
Column entry is 17 Bytes in size. Column names are at the EOF (before FF 00 w/ separator FF).
Data Type Definition: FE= char, 02=smallint, 03=int)
What type of logs are present in MySQL?
What are the default names of the following logs:
How can you display the binary log?
# mysqlbinlog mysql-bin.00001 > mysql-bin00001.txt
The binary log is a set of log files that contain information about data modifications made to a MySQL server instance. The log is enabled by starting the server with the –log-bin option. It contains all statements that update data (maybe passwords).
How many log files does the storage engine InnoDB create?
By default, InnoDB creates two redo log files (or just log files) ib_logfile0 and ib_logfile1 within the data directory of MySQL. In MySQL versions 5.6.8 and above, the default size of each redo log file is 48MB each:
Undo log
Redo log
What are MySQL caches and what are the three types of MySQL cache?
Caching: return data from a query quickly.
For what is cache analysis useful?
What are drawbacks of analyzing MySQL query cache?
What are other MySQL caches?