Complete the code to show the current binary log files in MySQL.
SHOW [1];The command SHOW BINARY LOGS; lists all binary log files currently available on the MySQL server.
Complete the code to enable binary logging in MySQL configuration.
[mysqld]
[1]=ONSetting log_bin=ON in the MySQL configuration file enables binary logging.
Fix the error in the command to purge binary logs older than a specific date.
PURGE BINARY LOGS TO '[1]';
The correct syntax requires the exact binary log file name with dot separators, like mysql-bin.000010.
Fill both blanks to set the binary log format and server ID in MySQL configuration.
[mysqld] binlog_format=[1] server_id=[2]
binlog_format can be set to 'ROW' for row-based logging, and server_id must be a unique number like 12345.
Fill all three blanks to create a command that shows the status of binary logging and the current binary log file.
SHOW [1] LIKE '[2]'; SHOW MASTER [3];
The first command SHOW STATUS LIKE 'log_bin'; checks if binary logging is enabled. The second command SHOW MASTER STATUS; shows the current binary log file and position.