My Laravel(hosted on EC2) app database(Mysql) is hosted in AWS RDS it was working fine but now it gives the error “SQLSTATE[HY000] [1130] Host ‘172...***’ is not allowed to connect to this MySQL server, for every API call.
I can’t connect db to run any SQL query (like SHOW GRANTS) and try to change the security inbound.
Some suggest to run run this
mysql -h rdsendpoint -u admin -p
but I am unable to connect.
Security group of EC2 that is used in RDS is