How to use pycharm to connect to MySQL in Alibaba Cloud server
Click database on the right, then click +, select MySQL.
General is filled with the password set on mysql, the port does not need to be changed, all are 3306, the host does not need to be changed, the user writes the default, if the test connection is gray, click install driver, pycharm will download and install it yourself.
Then click ssh, SSH checkbox, proxy host write server address, user and password are the account and password of Alibaba Cloud server. Click test connection, you can succeed.
Click Run directly on the console to run the corresponding command.