关于mysql/mariadb会产生大量错误日志导致硬盘空间很快被占用问题的解决方法
查看.err内容 很多如下内容的日志
[ERROR] Incorrect definition of table mysql.column_stats: expected column 'max_value' at position 4 to have type varbinary(255), found type varchar(255).
[ERROR] Incorrect definition of table mysql.column_stats: expected column 'min_value' at position 3 to have type varbinary(255), found type varchar(255).
解决方法
use mysql;
alter table column_stats modify column max_value varbinary(255);
alter table column_stats modify column min_value varbinary(255);
删除原来的.err文件,然后重启mysql,就可以了。
貌似比较新的版本的mysql/mariadb才会出现这个问题
本文详细介绍了如何处理MySQL/MariaDB因新版本定义问题产生的大量错误日志,涉及alter table语句修改column_stats列类型,并提供了解决步骤,包括删除旧日志和重启服务.
624

被折叠的 条评论
为什么被折叠?



