Pycharm configuration connection database

After entering pycharm, there is a Database option on the right, clicking this option will pop up the following interface:

Then click the green Add button, the following interface will appear:

At this time, we choose MySQL, and then the following dialog box for configuring MySQL will pop up
insert image description here

Fill in the relevant information. Then after the Test Connection test is successful, click OK!
insert image description here

Regarding the lack of Java Connector Driver:
Pycharm is written in java, and a driver file is required to connect to the MySQL database. Download mysql-connector-java-5.1.46.zip from the following link: https://dev.mysql.com/downloads/ connector/j/, and after decompression, come to the following interface
insert image description here

Then click the plus button on the right to load the mysql-connector-java-5.1.46-bin.jar just downloaded.
insert image description here

Guess you like

Origin blog.csdn.net/qq_17584941/article/details/123497791