![](https://img-blog.csdnimg.cn/20190927151026427.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
MySQL
文章平均质量分 55
记录遇到的MySQL相关问题
未注销233
。
展开
-
mysql中update更新时加条件和不加条件速度对比
mysql中update更新大量数据时加where条件和不加where条件速度对比原创 2023-09-21 14:09:05 · 622 阅读 · 0 评论 -
MySQL主从复制,从库Slave_IO_Running: No问题排查
在Docker中搭建的MySQL主从环境,重启了从库1的mysql,对主库的操作没有再同步到从库1。查看从库1,Slave_IO_Running: No。Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work ..............原创 2022-06-20 15:29:55 · 5421 阅读 · 2 评论 -
MySQL插中文报错“ERROR 1366 (HY000): Incorrect string value: ‘\xE7\xAC...”修改MySQL字符集,数据库字符集,表的字符集,表中字段的字符集
问题:在MySQL中建中文名的表,并向其中插入数据时出现了问题:mysql> create table 商品 (商品编码 int primary key,商品名称 char(10));Query OK, 0 rows affected (0.01 sec)mysql> insert into 商品 values(1,'耳机');ERROR 1366 (HY000): Incorrect string value: '\xE8\x80\xB3\xE6\x9C\xBA' for colu原创 2021-08-03 11:53:54 · 1705 阅读 · 0 评论