mysql Timezone问题


timezone

idea设置
https://blog.csdn.net/ITMan2017/article/details/100601438
serverTimezone
Asia/Shanghai

cmd(管理员)
mysql -hlocalhost -uroot -p;
show variables like’%time_zone’;
set global time_zone = ‘+8:00’;


Navicat1251(Command Line Client )

ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘mysql的密码’;
FLUSH PRIVILEGES;


查看字符集
show variables like ‘%character%’;

猜你喜欢

转载自blog.csdn.net/m0_45311187/article/details/112982786