时间戳的字段时间异常
mysqltimestamp 默认插入的时间与系统时间相比差13小时
1.检查系统时间
date
timedatectl 时区正常
2.检查mysql
show variables like ‘%zone%’;
3.以上无异常,最终重新建表问题解决
radpostauth | CREATE TABLE `radpostauth` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`pass` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`reply` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`authdate` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`),
KEY `username` (`username`(32))
) ENGINE=InnoDB AUTO_INCREMENT=8103 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci