Chapter 6 Review Questions
Let us see how much you have learned in this chapter by going over these review questions.
- Which statement is false about server log maintenance?
- Force MySQL to start using new log files by issuing a
FLUSH LOGS statement.
- Force MySQL to start using new log files by running
mysqladmin flush-logs.
- Force MySQL to start using new log files by running
mysqladmin refresh.
- Force MySQL to start using new log files by running
mysqladmin rotate-logs.
- Use the
mysql-log-rotate script for rotating logs and log clean up.
- With what option should
mysqld be started to enable binary logging?
-
--bin
-
--binary
-
--enable-bin
-
--enable-binary
-
--log-bin
- By default, in which directory are all MySQL server log files are created in?
-
/bin
-
/etc
-
/mysql/log
- The
mysqld data directory.
-
/var/log
- Which statement is false about slow query log?
- Log order is always the same as execution order.
- The default value of
long_query_time is 10 seconds.
- The minimum value of
long_query_time is 1 second.
- To enable the slow query log, start
mysqld with the --log-slow-queries option.
- Use the
mysqldumpslow command to summarize the queries in the slow query log.
© 2007 John Michael Pierobon
Notes