MySQL错误处理记录
MySQL日志时间的时区不对
# 查看当前时间
select now();
# 查看时区设置信息
show variables like "%time_zone%";
# 日志采用的时区log_timestamps,一般是UTC
SHOW global variables like 'log_timestamps';
# 临时设置为系统时间
set global log_timestamps=SYSTEM;
[mysqld]
log_timestamps = SYSTEM"select command denied to user root"
mysql 配置文件设置最大链接数max_connections不生效
Unknown table 'column_statistics' in information_schema
mysqldump: Couldn't execute 'show events': Access denied for user 'root'@'%' to database 'performance_schema' (1044)
MySQL 5.6.40
1146 - table 'performance_schema.session_variables' doesn't exist
“ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.”
Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
Specified key was too long; max key length is 767 bytes
mysql 5.6.45
ERROR 1292 (22007): Truncated incorrect DOUBLE value: ''
Duplicate entry '1233869' for key 'PRIMARY'
mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table TABLE_NAME at row: 1791140
服务器硬盘空间不足,重启失败,导致部分报如下错误需要修复。
ERROR 2026 (HY000): SSL connection error: unknown error numberMYSQL开启了SSL连接,命令行无法登录
ERROR 2026 (HY000): SSL connection error: unknown error numberMYSQL开启了SSL连接,命令行无法登录mysql中count(*)和information_schema.tables结果值不同
count(*)和information_schema.tables结果值不同mysql federated 引用其它库的表时,做主从同步时,只能在源库更新这张表,不能在引用的位置更新;因为在引用位置更新时就已经对源库进行了操作,从库去同步时源库已经被修改,再做同样的操作会导致从库崩溃,陷入无限重启失败的情况。
MySQL server version for the right syntax to use near 'REMOTE
ERROR 1045 (28000): Access denied for user 'app'@'192.168.x.x' (using password: YES)
ERROR: mysqld failed while attempting to check config command was: "mysqld --verbose --help --log-bin-index=/tmp/tmp.ci5irEMp9E"
最后更新于