Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the error of pycharm connecting to mysql database

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

PyCharm is a powerful Python editor, with cross-platform, pycharm connection mysql database prompt error how to solve? I believe that there are many people do not understand, today, in order to let you know more about pycharm connection mysql database tips error solutions, so give you a summary of the following content, let's look down.

The solution to the error of pycharm connecting to mysql Database

An error is prompted when connecting to the mysql database using the pycharm development tool, with the following message:

Server returns invalid timezone. Go to 'Advanced' tab and set' serverTimezone' property manually

The prompt returns an invalid time zone because the default time zone of MySQL is UTC time zone, which is 8 hours later than Beijing time.

The solution is to modify the duration of the mysql time zone. After the mysql is connected, the operation command is as follows:

Set global time_zone='+8:00'

On the pycharm connection mysql database tips on how to solve the error is shared here, I hope that the above content can have a certain reference value, you can learn to apply. If you like this article, you might as well share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report