简体   繁体   English

在 Ubuntu 14.04 LTS 中更改 innodb_log_file_size

[英]Changing innodb_log_file_size in Ubuntu 14.04 LTS

I am a starter in Linux and am hence new to all this.我是 Linux 的初学者,因此对这一切都很陌生。 Please take my noob mistakes kindly if there are any.如果有任何错误,请善待我的菜鸟错误。 So I am installing OTRS in Linux for which I have to change the innodb_log_file_size to 512M所以我在 Linux 中安装 OTRS,我必须将 innodb_log_file_size 更改为 512M

So I did the following but have been unsuccessful to change the log_file_size.所以我做了以下但没有成功更改 log_file_size。

  • Set GLOBAL innodb_fast_shutdown to 1将全局 innodb_fast_shutdown 设置为 1
  • Ensured that shutdown was completed using log file (It did indeed, saw a line which said Shutdown complete)使用日志文件确保关闭已完成(确实如此,看到一行表示关闭完成)
  • Moved the following files to home将以下文件移至主页

logfile0 & logfile1 from cd /var/lib/mysql来自 cd /var/lib/mysql 的 logfile0 & logfile1

  • Nano edited the my.cnf in ` Nano在`中编辑了my.cnf

/etc/mysql/my.cnf /etc/mysql/my.cnf

I added the following line under我在下面添加了以下行

 [mysqldump] 
 inno_db_log_file_size = 512M

Saved and closed the .cnf file and restarted mysql server using保存并关闭 .cnf 文件并使用重新启动 mysql 服务器

/etc/init.d/mysql start /etc/init.d/mysql 启动

I then checked the error log file and found that the logfile0 & logfile1 got recreated but got recreated with 5MB size again然后我检查了错误日志文件,发现 logfile0 和 logfile1 被重新创建,但再次以 5MB 大小重新创建

Can someone tell me what I am doing wrong.有人可以告诉我我做错了什么。 I am guessing that I am not adding the inno_db_log_file_size = 512M in the right place.我猜我没有在正确的地方添加inno_db_log_file_size = 512M

PS: There was no inno_db_log_file_size line before I added it. PS:在添加之前没有 inno_db_log_file_size 行。

Thanks in advance.提前致谢。

` `

配置选项是innodb_log_file_sizeinnodb-log-file-size-_都有效),但不是inno_db_log_file_size

Actually that is what I added.其实这是我加的。 I figured out where to write the line.我想出了在哪里写行。

The above was just a typo.以上只是一个错字。 Thanks for looking into it.:)感谢您的调查。:)

I solved it myself.我自己解决了。 Cheers.干杯。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM