[ERR] 1153 - Got a packet bigger than 'max_allowed_packet' bytes 解决方法

简介

max_allowed_packet 表示MySQL客户端和服务器之间,单条消息最大允许传输的数据包大小。

如果单条SQL插入或更新的数据包超过此大小,就会报错:
[ERR] 1153 - Got a packet bigger than 'max_allowed_packet' bytes

官方解释:

max_allowed_packet sets an upper limit on the size of any single message between the MySQL server and clients, including replication slaves. If you are replicating large column values (such as might be found in TEXT or BLOB columns) and max_allowed_packet is too small on the master, the master fails with an error, and the slave shuts down the I/O thread. If max_allowed_packet is too small on the slave, this also causes the slave to stop the I/O thread.

Windows程序开机自启动配置的几种方式

概述

Windows程序开机自启动配置的五种方式:
方式一:添加至自启动文件夹方式;
方式二:添加任务计划方式;
方式三:添加自启动服务方式;
方式四:添加本地组策略方式;
方式五:添加注册表自启动脚本方式;

不同方式比较:
方式一常见于手动操作,也可使用命令拷贝;
方式二、三为常用方式,适合通过命令直接创建;
方式四、五为不常用方式,不推荐使用。

MySQL 1819 - Your password does not satisfy the current policy requirements

mysql修改密码时提示:
1819 - Your password does not satisfy the current policy requirements

产生的原因:
自定义密码太简单,不符合mysql的密码策略

解决方法:
方法一:修改密码至符合mysql的密码策略(建议)。
方法二:如果必须用简单密码,可以修改密码策略;