After entering pycharm, there is a Database option on the right, clicking this option will pop up the following interface:
At this time, we choose MySQL, and then the following dialog box for configuring MySQL will pop up
Fill in the relevant information. Then after the Test Connection test is successful, click OK!
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
Then click the plus button on the right to load the mysql-connector-java-5.1.46-bin.jar just downloaded.