Connecting to mysql database using python on Hostgator

I guess this is the first thing to find out. To me it sounds that either root connections are not allowed, non-localhost connectios are not allowed, or credentials are incorrect. If you have CLI access to your database I suggest adding a user with a password, and ensure you grant the proper privileges etc.

1 Like