Pycharm连接Mysql8.0

1.错误:[S1009] The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL','EXCEPTION' or 'ROUND'.The value 'convertToNull' is not acceptable.

修改方式:Pycharm连接Mysql8.0的坑

zeroDateTimeBehavior=convertToNull改为zeroDateTimeBehavior=CONVERT_TO_NULL

2.错误 :[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

修改:

1.检查user和password是否有错

2.Pycharm连接Mysql8.0的坑检查连接池是否正确

3.试试将URL改成这个:jdbc:mysql://localhost:3306/dbname?useSSL=false&serverTimezone=UTC

   

 

 

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2021-12-18
  • 2021-12-02
  • 2021-06-20
  • 2022-12-23
  • 2021-08-17
  • 2021-10-13
猜你喜欢
  • 2021-11-27
  • 2022-12-23
  • 2021-04-25
  • 2022-01-17
  • 2021-09-26
  • 2022-12-23
  • 2021-09-17
相关资源
相似解决方案