![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
PG_码农
高山流水点滴积累。
展开
-
Mysql报错java.sql.SQLException:null,message from server:"Host '*********' is not allowed to connect
场景:java连接数据库的时候报错:java.sql.SQLException:null,message from server:"Host '*********' is not allowed to connect;原因:你连接服务器不允许你的java程序访问它的数据库。所以,我们要对远程服务器进行设置,使它允许你进行连接。解决方法:1.打开MySQL的控制台,输入use mysql...原创 2019-01-09 14:42:01 · 1395 阅读 · 0 评论 -
java连接MySQL运行报错The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than
错误:The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than原因:time zone 时区错误解决方法:1.使用root用户登录mysql,输入下面命令。show variables like '%time_zone%';SYSTEM为SQL默认美国时间,而我们中国要比...原创 2019-01-09 14:54:12 · 2536 阅读 · 2 评论