股票

[Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release.

继续整理数据库,发现 /var/log/mysqld.err 文件太大,先关掉 mysql, 然后重命名,再启动 mysql,就生成了一个新的 mysqld.err 日志文件。

查看mysql的错误日志,发现有以下两个告警:

[Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.

[Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.

想要消除这个告警,可以编辑 /etc/mysql/my.cnf 

[task]

[mysqld]

key_buffer = 16M

myisam-recover = BACKUP

[/task]

改为:

[task]

[mysqld]

key_buffer_size = 16M

myisam-recover-options = BACKUP

[/task]

注意,只改动 [mysqld] 下面的部分,别的地方不要改!!!

打赏
原文链接:,转发请注明来源!

发表评论