Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库相关 #113

Open
itgoyo opened this issue Dec 30, 2018 · 0 comments
Open

数据库相关 #113

itgoyo opened this issue Dec 30, 2018 · 0 comments

Comments

@itgoyo
Copy link
Owner

itgoyo commented Dec 30, 2018

idea跑项目的时候出现

unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (

解决方式:

需要在Url后面添加一个参数:

?serverTimezone=UTC

spring.datasource.url=jdbc:mysql://localhost:3306/itgoyo?serverTimezone=UTC

SQLyog连接数据库报错plugin caching_sha2_password could not be loaded

打开cmd:mysql -uroot -p 

进入mysql依次执行下面语句

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则 

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码 

FLUSH PRIVILEGES; #刷新权限

重置密码:alter user 'root'@'localhost' identified by 'xzx123456';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant