Home >> FAQs/Tutorials >> MySQL Tutorials
MySQL Tutorial - What Is Binary Log File
(Continued from previous topic...)
What Is Binary Log File?
MySQL server binary log file plays an important role in restoring database changes
to the server. Main features on binary log files are:
- Binary logs can be turned on by "--log-bin=fileBaseName" option on "mysqld".
- Binary logs only records statements that are changing data in the database.
So a simple SELECT statement will be not recorded in binary logs.
- Binary logs are organized in multiple files with names like: base.index, base.000001,
base.000002, etc. Each time when you restart the server, a new binary log file will be created.
- Binary log files can be viewed by "mysqlbinlog" program.
- Binary log files can be piped into back to the server as
"mysqlbinlog base.000001 | mysql" for restoring data changes after a server crash.
(Continued on next topic...)
- What Is the MySQL Server Daemon - mysqld?
- What Are the "mysqld" Command Line Options?
- How To Start MySQL Server Daemon mysqld?
- How To Properly Shutdown MySQL Server Daemon mysqld?
- How Much Memory Does the Server Take?
- How To Turn on Query Logs?
- How To Turn on Error Logs?
- What Is Binary Log File?
- How To Turn on Binary Logs?
- How To Use mysqlbinlog to View Binary Logs?
- How To Run MySQL Server on a Different Port?
- How To Connect to MySQL Server on a Different Port?