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

首頁 > 數(shù)據(jù)庫 > MySQL > 正文

mysql 有關(guān)“InnoDB Error ib_logfile0 of different size”錯誤

2024-07-24 12:44:23
字體:
供稿:網(wǎng)友
1,查看Mysqld(/var/log/mysqld.log)日志,發(fā)現(xiàn)以下錯誤:
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參數(shù)前,請先停止mysql服務(wù)程序的運行(mysql的停止沒有出現(xiàn)任何錯誤),并把/var/lib/mysql目錄下的ib_logfile0、ib_logfile1、ib_logfile2等之類的文件移除到一個安全的地方(舊日志文件的保留是為了防止意外的出現(xiàn)),以便Mysql重啟后可以將新的ib_logfile0之類日志文件生成到/var/lib/mysql目錄下。如果沒有什么意外,舊的日志文件可以刪除。

您可能感興趣的文章:

mysql主從同步復(fù)制錯誤解決一例win2003 安裝2個mysql實例做主從同步服務(wù)配置Mysql主從同步備份策略分享windows環(huán)境下mysql數(shù)據(jù)庫的主從同步備份步驟(單向同步)mysql主從同步快速設(shè)置方法MySQL 數(shù)據(jù)庫雙向鏡像、循環(huán)鏡像(復(fù)制)Mysql 主從數(shù)據(jù)庫同步(centos篇)解讀mysql主從配置及其原理分析(Master-Slave)mysql 數(shù)據(jù)同步 出現(xiàn)Slave_IO_Running:No問題的解決方法小結(jié)mysql SKIP-NAME-RESOLVE 錯誤的使用時機(jī)造成用戶權(quán)限MYSQL同步 Slave_IO_Running: No 或者Slave_SQL_Running: No的解決方法[已測]Windows mysql 雙向同步設(shè)置方法 詳細(xì)篇win2003 mysql單向同步配置步驟[已測]
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 南宫市| 黎川县| 湖北省| 图们市| 鹤庆县| 许昌县| 金门县| 靖远县| 盘山县| 临清市| 当雄县| 绥中县| 克山县| 虹口区| 莆田市| 丹寨县| 潼关县| 潞西市| 开封市| 宁海县| 泽州县| 乌恰县| 嵩明县| 黎川县| 永福县| 塔河县| 水富县| 吉水县| 沙湾县| 慈溪市| 尉氏县| 光泽县| 洱源县| 峨眉山市| 新河县| 福海县| 甘孜县| 湖南省| 武清区| 化州市| 翼城县|