MySQL Forums
Forum List  »  MySQL Workbench

Cannot connect to Database Server
Posted by: Stefano Ghisoni
Date: December 12, 2022 05:09AM

Hi I'm Stefano and I have one database on hostinger.it.
I tried to connect it from MySQL Workbench with this credentials (communicated from hostinger support):
- hostname: sql245.main-hostinger.eu
- username (database): u542972282_localhost
- port: 3306
- password: (database password)
- connection method: Standard TCP/IP

But it show me a message error that I don't understand.

/* Message */

Failed to Connect to MySQL at mysql245.main-hostinger.eu:3306 with user u542972282_localhost.

Unable to connect to localhost.

/* */

or

/* Message */
Cannot Connect to Database Server

Your connection attempt failed for user 'u542972282_localhost' to the MySQL server at mysql245.main-hostinger.eu:3306:
Unable to connect to localhost

Please:
1 Check that MySQL is running on address mysql245.main-hostinger.eu
2 Check that MySQL is reachable on port 3306 (note: 3306 is the default, but this can be changed)
3 Check the user u542972282_localhost has rights to connect to mysql245.main-hostinger.eu from your address (MySQL rights define what clients can connect to the server and from which machines)
4 Make sure you are both providing a password if needed and using the correct password for mysql245.main-hostinger.eu connecting from the host address you're connecting from

/* */

How can I do to connect correctly my database?

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Cannot connect to Database Server
1530
December 12, 2022 05:09AM


Sorry, you can't reply to this topic. It has been closed.

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.