1

Facing some issue regarding the connectivity of PHP/Laravel application from host machine EC2 to managed AWS RDS Mariadb instance.

When connecting from Laravel app though .env (db settings) it return this error

SQLSTATE[HY000] [2002] Permission denied (SQL: select * from `users` where `id` = 1234567 limit 1)

Some flows already check and it passes successfully.

  • Telnet is successful from ec2 host machine to AWS RDS instance
  • From Host Machine EC2 mysql -h your-db-instance.x12345abcde.region.rds.amazonaws.com -u your_username
  • P 3307 - It successfully connected and execute the corresponding queries.
  • .env file permission already check have enough permission at file level..
1
  • your connection username your_username doesn't have select grant on users? If you execute show grants as this user what does it show? Commented Feb 2 at 21:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.