How can I view live MySQL queries? How to show the last queries executed. SHOW BINARY LOGS SHOW MASTER LOGS. Lists the binary log files on the server.
This statement is used as part of the procedure described in Section 13. PURGE BINARY LOGS Statement”, that shows how to determine which logs can be purged.
Issuing a SHOW RELAYLOG EVENTS with no LIMIT clause could start a very time- and resource-consuming process because the server returns to the client the complete contents of the relay log (including all statements modifying data that have been received by the slave). We’ll go over some of the issues that many MySQL users encounter and provide guidance for troubleshooting specific problems. Summary: in this tutorial, you will learn how to use the MySQL SHOW DATABASES command to list all databases in a MySQL database server.
Using the MySQL SHOW DATABASES. However, note that this query shows all of the columns from the mysql. Set general_ log _file to specify the name of the log file.
If a log file already is open, it is closed and the new file is opened. When the general query log is enable the server writes output to any destinations specified by the log _output system variable.