Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

beyond's avatar

Aws beanstalk not connecting laravel with created rds mysql

I need help deploying my laravel app to aws beanstalk. The db connection error is the issue.

SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = edb and table_name = translations and table_type = 'BASE TABLE')

That's the error I keep getting with all the deploy and launches.

The rds mysql is created automatically when I create the beanstalk, I provide the password and root username.

Note that I have created many apps and Environments with my laravel project, I still get the same error.

I have updated the necessary DB credentials (host, name, username, password) but the error persists.

I checked the created ec2, tried to clear cache or config, but any artisan command produce the same error on the console.

I also connected the db to the created ec2 instance explicitly bu the error persists.

I would appreciate your help to get through with this.

0 likes
0 replies

Please or to participate in this conversation.