MySQL常见错误

1. TokuFT file system space is really low and access is restricted

解决方法:修改tokudb_fs_reserve_percent参数,不过该参数是静止参数,需重启实例

具体可参考:http://www.cnblogs.com/zuoxingyu/p/5103638.ht

同样可参考:http://www.cnblogs.com/Alight/p/4118515.html

2. Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Binary log is not open'

启动从的时候,报如上错误

从报错信息是主的二进制日志没有开启,最后才发现,做测试的时候将/etc/my.cnf修改为/etc/my.cnf.bak,导致mysqld启动的时候没有默认的配置文件,自然也不会开启binlog。

3. ERROR 1034 (HY000): Incorrect key file for table 't1'; try to repair it

/tmp空间不足

4. Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.

set global innodb_strict_mode = 0;

注意,全局修改只对下个连接才生效。

具体可参考:https://mariadb.com/kb/en/troubleshooting-row-size-too-large-errors-with-innodb/

原文地址:https://www.cnblogs.com/ivictor/p/5242207.html