PyCharm Community 2019.2 连接MySQL8.0 时区不同步的解决

Windows10中,PyCharm Community 2019.2  连接MySQL8.0 连接错误,IDE提示如下:

Cannot connect to "MySQL8.0".
The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

解决步骤如下,参考链接:https://stackoverflow.com/questions/930900/how-do-i-set-the-time-zone-of-mysql

一,打开MySQL8.0 Command Line Client -unicode,输入MySQL密码登陆。

二,在登陆后输入如下代码,然后回车执行,即可顺利搞定。

1 SET GLOBAL time_zone = ‘+8:00‘;

 

原文地址:https://www.cnblogs.com/simyeo/p/11420028.html

时间: 2024-08-30 10:06:41

PyCharm Community 2019.2 连接MySQL8.0 时区不同步的解决的相关文章

Navicat11.1连接Mysql8.0报错1251的解决办法

今天下载mysql-8.0.13,完成配置及正常启动后,Navicat11.1工具连接时总报错:1251,找到解决办法主是要mysql8的加密方式不同.具体解决办法如下:一.管理员权限打开CMD,输入mysql的root帐号及密码: D:\mysql8>mysql -u root -p输入root的密码回车二.更改mysql的方式:mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVE

远程连接MYSQL8.0服务器问题

title: 远程连接MYSQL8.0服务器问题 date: 2018-07-07 11:02:26 updated: tags: [MYSQL,坑] description: keywords: comments: image: --- 问题描述: 先前使用MYSQL5.1,远端访问MYSQL服务器没问题,遇到的问题也就是防火墙问题,修改出入站规则后轻松的解决了.但是MYSQL8.0就很坑了,按照网上的解决办法折腾了两个小时,最后解决,依然不明白哪里有问题,只能把操作复现,为以后使用留个记录.

【问题记录】Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’....错误

问题描述: Navicat Premium连接mysql-8.0.17时出现2059 - Authentication plugin 'caching_sha2_password’ cannot be loaded:......错误 问题分析: mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password. 解决办法: 1.登陆数据库:mysql - u root -p; 2.切换数据库:use mys

登录注册页面(连接MySQL8.0.15版本)

原文链接:https://mp.weixin.qq.com/s?__biz=MzI4Njg5MDA5NA==&mid=2247483779&idx=1&sn=e23e68e96123b9e218c95f808b8a8237&scene=19#wechat_redirect 前言:在讲解Web开发模式的时候,曾经写过XML版的用户登陆注册案例!现在在原有的项目上,使用数据库版来完成用户的登陆注册! 本来使用的是XML文件作为小型数据库,现在使用Mysql数据库,代码究竟要改多

PDO连接mysql8.0报PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers错误

安装mysql8.0之后,尝试使用php连接mysql,总是报PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers错误,网上找了很多资料,然而都没有多大用处. 查找了mysql官方说明文档才知道原来M8.0已经已经把默认字符集升级成ut8mb4了,于是找到my.cnf文件,修改如下: 1 [client] 2 port = 3306 3 socke

远程连接mysql8.0,Error No.2058 Plugin caching_sha2_password could not be loaded

通过本地去连接远程的mysql时报错,原因时mysql8.0的加密方法变了. mysql8.0默认采用caching_sha2_password的加密方式 第三方客户端基本都不支持这种加密方式,只有自带的命令行支持 所以需要修改加密方式. 首先进入mysql命令行 [[email protected] ~]# mysql -u root -p Enter password: 第一步:修改加密方式 ALTER USER'root'@'localhost' IDENTIFIED BY '[email

navicat连接mysql8.0+版本报错2059

ERROR 2059 : Authentication plugin 'caching_sha2_password' cannot be loaded 问题: 连接Docker启动的mysql出现:ERROR 2059: Authentication plugin 'caching_sha2_password' cannot be loaded 问题出现原因: 在用navicat连接MySQL8+时会出现2059错误,这是由于新版本的MySQL使用的是caching_sha2_password验

spring boot连接mysql8.0

今天spring boot的项目数据库从mysql5.7换到mysql8.0,遇到点问题,特此记录下来 查看mysql的版本 mysql> select version();+-----------+| version() |+-----------+| 8.0.12 |+-----------+ 修改mysql的依赖使用MySQL Connector/J <dependency> <groupId>mysql</groupId> <artifactId&g

Navicat 连接mysql8.0时报错

命令 mysql -u root -p use mysql select user,host,plugin from user; alter user 'haidragon'@'%' identified with mysql_native_password by 'pass123'; select user,host,plugin from user; exit mysql.server restart (mac) 192:etc haidragon$ mysql -u root -pEnte