Failed connection to amazon RDS - mysql

I can connect to my Amazon RDS MYSQL instance from the following
EC2 instance in both command line and usin mysql workbench
From an Excel Worksheet using the mysql driver and an odbc, on my laptop.
However from my laptop I can not connect to the instance from
Command Line
Mysql Workbench
TELNET TEST
N
5.5.40-log</UA"%2kF☻└§\ypC#Td}fhWYmysql_native_password
connection to host lost.
MYSQL CMD LINE ERROR
Warning: Using a password on the command line interface can be insecure. ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 2
CURRENT SITUATION
I am running windows.
I have checked the amazon service is healthy
I have checked another internet connection.
I have had this error before but it just sorted itself out.
I have not been able to access MYSQL for over 24hours from cmd or
workbench or telnet but I can from EC2 and Excel.
Security group settings are open to anyone. Has been like that for 1 year
The log shows some IP failed attempts from unkown IPs, one was in China, I am in the UK.
Secure groups have been added to the instance.
UPDATE
It appears that I can access the RDS MYSQL server from Starbucks. This issue must relate to my internet provider at home. What could I ask the internet provider to check?

Related

AWS: I can connect to postgres RDS database but cannot connect to MySQL RDS database

I have one device ,one is my home laptop, one is my pc from work,i trying to connect to RDS database with my laptop from home,it can connect to both postgres RDS and mysql
But with my pc from work,i try everything from Edit inbound rules,set to my local ip,or 0000/0,..
but it just can only connect to postgres database RDS,can not connect with MySQL database RDS, help me
Security page
Active
Publicly accessible
Yes
Certificate authority
rds-ca-2019
Certificate authority date
August 23, 2024, 12:08 (UTC±12:08)
Connect with MySQL
Connection Error
Error invoking remote method 'DB_CONNECT': Error: connect ETIMEDOUT
Connect with PostgresSQL
Connection Test
Successfully connected
my bound rules

Another can't remote mysql in gcloud

I've gone through the basics, bind_address, Google's Firewall, ufw shows inactive but I can't even telnet to the machine on the mysql port.I'm trying to get spotfire to use our db directly just to test it out.
The mysql db is on a vm instance in Google Cloud. The server can of course work with the db no problem, any external connections don't go through with this error:
ERROR 2002 (HY000): Can't connect to MySQL server on '' (119)
Telnet says this:
Connecting To ...Could not open connection to the host, on port 3306: Connect failed
I'm sure I'm missing something, any help will be awesome.

connecting to database fails with laravel mysql

my project is hosted in forge (digital ocean) laravel 5.1
I can connect (ssh) normally with putty using ssh file key by taping only the username but I fail when I try to connect to database with heidisql with the same ssh key file , I used to connect normally but the last month after a payment problem i always fail and i Get
Lost connection to MySQL server at 'reading initial communication packet', system error: 0
and in the webpage I get
[PDOException] SQLSTATE[HY000] [2002] Connection refused
any solution please
solved by sudo service mysql restart

Can't connect a DB to AWS

I'm using AWS for my project and Laravel 5. Just installed my laravel project in the EC2 and set up a DB in RDS. I imported the .sql file using mysql workbench. In my .env I set up the host, the DB name, user and password but when I go to the project in the browser I get an error:
PDOException in Connector.php line 55:
SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'blue*****.************.us-west-2.rds.amazonaws.com' (4)
Put the * for security reasons. So what could be wrong?
Update:
When I tried to connect to the RDS instance using the command line I got:
ERROR 2003 (HY000): Can't connect to MySQL server on 'blue****.**********.us-west-2.rds.amazonaws.com' (110)
The reason you are not able to connect to the RDS instance from the EC2 instance has to do with security group.
Before your EC2 instance can communicate with the RDS server, you need to configure a security group for the RDS.
You can check this and this for more details.

mySQL command line works but ODBC and workbench do not

I am trying to test a connection to a mySQL database running on a remote linux server. I am running Windows 7 and have mySQL installed on my machine as well as the 32-bit ODBC driver. I can connect from the DOS command prompt with no problems. But I cannot connect using mySQL workbench or with ODBC (from MS Access).
In MySQL workbench my error is:
Your connection attempt failed for user 'username' from your host to server at 'x.x.x.x:x': Unknown MySQL server host 'x.x.x.x' (0)
In MS Acess (ODBC driver) my error is:
Connection faile:[HY000][MySQL][ODBC 5.2(w) Driver]Can't connect to MySQL server on 'x.x.x.x' (10061)
I've searched stackoverflow extensively and I found lots of people who can't get ANY connection to work. But I know I can log in from my computer. Could it be something other than ports?
Please make sure you are using correct ip address in MySQL workbench to connect to your mysql database