∵∵∵open log for mysql∵∵∵
1.首先確認你日誌是否啟用了
mysql>show variables like 'log_bin';
2.如果啟用了,即ON
那日誌檔案就在mysql的安裝目錄的data目錄下
3.怎樣知道當前的日誌
mysql> show master status;
4.看二進位制日誌檔案用mysqlbinlog
shell>mysqlbinlog mail-bin.000001
shell>mysqlbinlog mail-bin.000001 | tail
mysql有以下幾種日誌:
錯誤日誌: -log-err
查詢日誌: -log
慢查詢日誌: -log-slow-queries
更新日誌: -log-update
二進位制日誌: -log-bin
在mysql的安裝目錄下,開啟my.ini,在後面加上上面的引數,
儲存後重啟mysql服務就行了。
#Enter a name for the binary log. Otherwise
a default name will be used.
#log-bin=
#Enter a name for the query log file.
Otherwise a default name will be used.
#log=
#Enter a name for the error log file.
Otherwise a default name will be used.
log-error=
#Enter a name for the update log file.
Otherwise a default name will be used.
#log-update=
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9879835/viewspace-1000376/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [ERROR] Failed to open logErrorAI
- alter database open resetlogs;Database
- Top free and open source log management software
- open resetlogs後資料恢復資料恢復
- MySQL:Table_open_cache_hits/Table_open_cache_misses/Table_open_cache_overflowsMySql
- weblogic日誌報錯too many open filesWeb
- Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION`Database
- MySQL error log和bin logMySqlError
- [ERROR] Can't open the mysql.plugin tableErrorMySqlPlugin
- mysql blogMySql
- Open Resetlogs After Restore Hangs (Doc ID 1455666.1)REST
- recover and open db if archivelog required for recovery is either miss_465478.1HiveUI
- 解決WebLogic中Too many open files異常Web
- DBLOGIN ERROR: Failed to open data source for user OGG.ErrorAI
- MySQL的Redo log 以及Bin logMySql
- Mysql的redolog和binlogMySql
- MySQL:Redo & binlogMySql
- mysql之 redo logMySql
- MySQL Binary LogMySql
- Mysql general query logMySql
- mysql binlog管理MySql
- MySQL四種日誌binlog/redolog/relaylog/undologMySql
- MySQL中的redo log和undo logMySql
- mysql relay log和binlog 小結MySql
- MySQL Undo Log和Redo Log介紹MySql
- 【Mysql】三大日誌 redo log、bin log、undo logMySql
- mysql備份提示 too many open files Errornumber 24MySqlError
- mysql報錯Changed limits: max_open_files: 5000MySqlMIT
- Gluten, the vectorized execution engine framework, is officially open sourced and unveiled at the Spark Technology SummitZedFrameworkSparkMIT
- OPEN RESETLOGS FAILS WITH ORA-01577 (Doc ID 953293.1)AI
- MySQL 日誌系統 redo log、binlogMySql
- mysql binlog 刪除master- binlogMySqlAST
- mysql 配置 General Query Log和# Slow Query LogMySql
- Mysql的binlog原理MySql
- MySQL Binlog 介紹MySql
- Mysql三類log解析MySql
- MySql Binlog 初識MySql
- mysql安全之loginpathMySql