您的位置:首页 > 数据库 > MySQL

mysql集群使用过程中错误集合

2017-11-15 10:25 176 查看

应用场景

在使用mysql集群的过程中,会遇到很多问题,报很多错误,常见的几处错误在此列一下。

错误展示

错误1

错误: ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 14000. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs.

在将单点库数据转成集群库的时候,会报上面的错误,那么需要将出错的表中较长的字段改为Text类型或者Blob类型,再继续执行。


错误2

错误:在转换磁盘表的过程中,如果转换前的内存表没有主键,那么不能转换为磁盘表。

错误3

错误:2006 - MySQL server has gone away

在sql节点输入如下命令set global max_allowed_packet=1024*1024*60;


错误4

错误:在mysql集群查询过程中,大小写敏感。

在sql节点的/etc/my.cnf配置文件中,加入参数设置:
[mysqld]
Lower_case_table_names=1


错误5

错误: Connection is read-only. Queries leading to data modification are not allowed

# mysqladmin -u root -p flush-tables
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: