国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

mysql 有關“InnoDB Error ib_logfile0 of different size”錯誤

2020-01-19 00:07:53
字體:
來源:轉載
供稿:網友
1,查看Mysqld(/var/log/mysqld.log)日志,發現以下錯誤:
InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0
5242880 bytes
InnoDB: than specified in the .cnf file 0 104857600 bytes!
030826 1:42:15 Can't init databases
030826 1:42:15 Aborting


2,解決辦法

"
If you want to change the number or the size of your InnoDB log files, you
have to shut down MySQL and make sure that it shuts down without errors.
Then copy the old log files into a safe place just in case something went
wrong in the shutdown and you will need them to recover the database. Delete
then the old log files from the log file directory, edit my.cnf, and start
MySQL again. InnoDB will tell you at the startup that it is creating new log
files.
"

在你修改my.cnf的innodb_log_file_size參數前,請先停止mysql服務程序的運行(mysql的停止沒有出現任何錯誤),并把/var/lib/mysql目錄下的ib_logfile0、ib_logfile1、ib_logfile2等之類的文件移除到一個安全的地方(舊日志文件的保留是為了防止意外的出現),以便Mysql重啟后可以將新的ib_logfile0之類日志文件生成到/var/lib/mysql目錄下。如果沒有什么意外,舊的日志文件可以刪除。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 开远市| 沂源县| 称多县| 武清区| 都昌县| 当涂县| 望奎县| 玛曲县| 和平县| 富阳市| 衢州市| 海淀区| 江西省| 那曲县| 湘西| 开远市| 嘉定区| 凤山县| 剑川县| 仁布县| 富民县| 昌黎县| 临西县| 乐安县| 新化县| 门头沟区| 车致| 泾源县| 屯昌县| 武汉市| 故城县| 武宣县| 武清区| 合肥市| 玛曲县| 凤翔县| 天峨县| 铜山县| 容城县| 荔波县| 鲁山县|