一个简单的关联查询缓慢,出不来结果,SQL语句如下: select * from kktongjibiao a where a.content_id not in (select content from kkjiuwangzhanID b); 其中a表数据量424508,b表数据量203619。 经实验模拟,发现是关联字段类型不一致导致,a表字段是数字,b表字段是字符。 以下记录了详细的模拟过程。 create table kktongjibiao as select jc_content.content_id …

2019年10月28日 0条评论 2041点热度 0人点赞 liking 阅读全文

■■使用mysqldump自动定时备份MySQL数据库 ■安装MySQL客户端 如果已经安装高版本的MySQL客户端,在mysqldump导出数据时可能存在版本兼容性问题。 因此建议卸载高版本客户端,安装低版本、常用的5.7版,以下yum方式安装步骤。 1、直接从MySQL官网安装MySQL社区版仓库 yum install https://dev.mysql.com/get/mysql80-community-release-el7-2.noarch.rpm 2、关闭MySQL80版本仓库,打开MySQL57版本…

2019年2月17日 0条评论 2332点热度 0人点赞 liking 阅读全文

ERROR 1118 (42000) at line 141: 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在将单点库数据转成cluster集群库的时候,会报上面的错误,那么需…

2018年12月13日 0条评论 2589点热度 0人点赞 liking 阅读全文

新建的一个2节点PXC MySQL集群在导入数据时出现报错: ERROR 1105 (HY000): Percona-XtraDB-Cluster prohibits use of DML command on a table (jeecmsv93.org_depart_funct_bak) without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER 这是由于PXC每个表必须要有主键,如果没有主键,可能造成集群中每个节点的da…

2018年12月6日 0条评论 4804点热度 0人点赞 liking 阅读全文