MySQL Forums
Forum List  »  Connector/Python

Re: Connection failed to remote MySQL Server
Posted by: Souma Kanti Ghosh
Date: March 13, 2025 06:14AM

Hello Anisse,

I'm assuming by remotely hosted server you mean the server is being launched from a different platform (not from where the client script is being run).

By looking at the error message, I can say that the host is reachable but the connection to the server may be getting refused.

Can you please share the client-side script you're using to connect to the server? Also, are you using a commercial or community server type?

You can also try connecting with mysql client (from the client side platform) by passing the remote addr/port just to test if the server is reachable remotely at all.

$ mysql -u {username} -p'{pwd}' -h {remote server_ip or name} -P {port} -D {DB}

Do let me know about the results.

Regards,
Souma Kanti

Options: ReplyQuote


Subject
Written By
Posted
Re: Connection failed to remote MySQL Server
March 13, 2025 06:14AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.