Cannot connect to AWS RDS again - mysql

I am running an AWS RDS. I used to be able to connect to it via MySQL workbench, and my EC2 instance running a laravel application was also connected to it which has been working fine so far but I had an issue with my storage space and needed to download and upload some files on my ec2 instance just to free up some space.
Because I was connecting using as Filezilla I had to use the command sudo usermod -a -G www-data ubuntu to give ubuntu to the group so i can have access to read and write.
The problem is after running this command i noticed I can no longer connect my workbench to the RDS again. Even my laravel application can't access the RDS again.
My Laravel app throws this error
php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
while workbench throws this
Your connection attempt failed for user ....
How can i resolve this?

I had a similar problem, I restarted my BD RDS

Related

Problem django, accessing database, "django.db.utils.OperationalError: (1043, 'Bad handshake')"

I want to deploy a Django app on a virtual machine hosted on a cluster. For this app i need access to a MySQL database that is also hosted on the cluster.
When I launch $ mysql -h 1XX.1XX.1.1XX -u test -p test on the virtual machine, i can access the database.
But when i run the django server, i've got an error : django.db.utils.OperationalError: (1043, 'Bad handshake')
It is the same error as when the versions of MySQL between the cluster and the VM are different but I installed the same.
Thank you for help.

unable to connect to mysql running inside WSL

Getting the above error while connecting to mysql server running on WSL. That's weird
because I have done this with postgresql and it worked fine.
But if on the WSL command prompt I type mysql -u root I am able to connect to it.
The Dbeaver or any other window client application or any java program is also giving error

MySQL.prefPane showing stop status

I have installed mysql using dmg from mysql website.
mysql-8.0.23-macos10.15-x86_64.pkg
package version: mysql-8.0.23-macos10.15-x86_64.dmg
I have connected to localhost server using: mysql connect -h127.0.0.1 -uroot
I am successfully connected and able to run operation/queries.
But not able to connect through django project. I suspect it is due to server not running. I am unable to understand when server is not running how i am able to connect from terminal.
UPDATE:
After reading answer on dba exchange I realised it might be because I
ran kill to stop mysql server.

"Can't connect to local MySQL Server" using SSH tunnel

Starting an SSH tunnel to MySQL so MySQL Workbench can connect to the remote DB using the following command:
ssh -L 3306:localhost:3306 <username>#<domain> -N
MySQL Workbench is able to connect without issue doing this.
I was also trying to spin up a local copy of the Django application and connect to the remote test DB and I get met with:
django.db.utils.OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2 "No such file or directory")'
Looking at the Django settings, everything looks correct. Just seems like Django is ignoring the tunnel despite using the same port. Django is in virtualenv so wonder if something there might be causing it.
Any suggestions?
I had to change the DB connection string in the settings.py to 127.0.0.1 instead of localhost.

connect phpMyAdmin to MySQL server on EC2

I am new to this, any help is appreciated.
I am running phpMyAdmin on my local ubuntu machine. I want to access my mysql database on my Amazon-EC2 instance which is running ubuntu as well. Is there anyway to do this?
To connect to EC2 using ssh I am using a pem keyfile. How should I configure phpMyAdmin to use this file for login?