CodePudding user response:
Please share the snap of error you are getting. Till then this resource might be helpful: https://pynative.com/python-mysql-database-connection/#h-how-to-connect-mysql-database-in-python
CodePudding user response:
If you tell me what error code you are getting, it might be of more help. My guess is that you most likely didn't have pymysql installed.
pip install pymysql