[ERROR] Failed to open log
版本:5.5.14
效能測試部-測試環境資料庫
1、在效能測試過程中大量的日誌,測試人員直接使用 rm -rf 刪除所有
2、重啟資料庫時,出現報錯,導致資料庫無法啟動,檢視報錯日誌,報錯資訊如下:
/export/servers/mysql/bin/mysqld: File './mysql-bin.000003' not found (Errcode: 2)
140325 16:31:16 [ERROR] Failed to open log (file './mysql-bin.000003', errno 2)
140325 16:31:16 [ERROR] Could not open log file
140325 16:31:16 [ERROR] Can't init tc log
140325 16:31:16 [ERROR] Aborting
3、雖然mysql-bin.000003日誌不存在,但是在mysql-bin.index裡有mysql-bin.000003記錄
解決方法:
cp mysql-bin.index mysql-bin.index.bak
編輯 vi mysql-bin.index
刪除缺少的mysql-bin.0000日誌即可,重啟資料庫OK。
效能測試部-測試環境資料庫
1、在效能測試過程中大量的日誌,測試人員直接使用 rm -rf 刪除所有
2、重啟資料庫時,出現報錯,導致資料庫無法啟動,檢視報錯日誌,報錯資訊如下:
/export/servers/mysql/bin/mysqld: File './mysql-bin.000003' not found (Errcode: 2)
140325 16:31:16 [ERROR] Failed to open log (file './mysql-bin.000003', errno 2)
140325 16:31:16 [ERROR] Could not open log file
140325 16:31:16 [ERROR] Can't init tc log
140325 16:31:16 [ERROR] Aborting
3、雖然mysql-bin.000003日誌不存在,但是在mysql-bin.index裡有mysql-bin.000003記錄
解決方法:
cp mysql-bin.index mysql-bin.index.bak
編輯 vi mysql-bin.index
刪除缺少的mysql-bin.0000日誌即可,重啟資料庫OK。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-1129286/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ascp: Failed to open TCP connection for SSH, exiting. Session Stop (Error: Failed to open TCP connection for SSH)AITCPSessionError
- 解決 yum clean all Error rpmdb open failedErrorAI
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- smplx 的 libGL error: MESA-LOADER: failed to open swrast 的解決方法ErrorAIAST
- 【ERROR】OPatch failed with error code 73ErrorAI
- MySQL error log和bin logMySqlError
- OPatch failed with error code 73AIError
- mysql 8 報錯 ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositoryMySqlErrorAIStruct
- 【AndroidStudio】Error:Execution failed for task ':app:preDebugAndroidTestBuild'.AndroidErrorAIAPPUI
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- Mysql系統變數中 log_error_services | log_filter_internal; log_sink_internal 和 log_error_verbosity | 2 解釋MySql變數ErrorFilter
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- ERROR: Failed to resolve: org.greenrobot:eventbus:2.4.0ErrorAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- PSQLException: ERROR: failed to find conversion function from unknown to charSQLExceptionErrorAIFunction
- error in ./src/components/form/Editor.vue Module build failed: Error:Vue packages version mismatchErrorORMVueUIAIPackage
- python爬蟲--urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certiPython爬蟲ErrorAI
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- nginx 報錯 accept4 () failed (24: Too many open files)NginxAI
- ERROR:Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODINGErrorAIEncoding
- Error: pngquant failed to build, make sure that libpng-dev is installedErrorAIUIdev
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the processErrorExceptionAI
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- wordpress 記錄php-error.log路徑PHPError
- MySQL [ERROR] Slave I/O: Found a Gtid_log_event or Previous_gtids_log_eventMySqlError
- DUMP-CX_SY_OPEN_SQL_DB-DBSQL_DUPLICATE_KEY_ERRORSQLError
- error: install: %pre scriptlet failed (2), skipping cvuqdisk-1.0.9-1ErrorAI
- error: RPC failed; curl 18 transfer closed with outstanding read data remainingErrorRPCAIREM
- wsl損壞,WSLRegisterDistribution Failed with Error 0x8007019eAIError
- Job for docker.service failed because the control process exited with error codeDockerAIError
- bind (ERROR 502): bind(0.0.0.0:8811) failed. Error: Address already in use [98] (埠被佔用)ErrorAI
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- ORA-01511 error in renaming log/data files ORA-00261 log 4 of thread 1 is beingErrorthread
- MySQL Binlogging Fails With Writing One Row To The Row-based Binary Log FailedMySqlAI
- 2、MySQL錯誤日誌(Error Log)詳解MySqlError
- PING[ARC5]: Heartbeat failed to connect to standby 'dghq'. Error is 12154.AIError
- Network Error;net::ERR_FAILED(請求跨越)前後端ErrorAI後端