Laravel: No such file or directory for table in AWS RDS laravel - mysql

I currently deployed my laravel app to the AWS elastic beanstalk. I created RDS mysql database. I imported my sql dump from my local project and deployed it to the AWS EC2 server. But I'm getting this error.
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from settings where code = company-name limit 1).
Is there any way how to check if there are data in my DB ? Just to note I'm still learning moving around AWS. Thanks.
EDIT :
I'm also getting correct Environment & details like RDS_PORT RDS_HOST... , on error page where I can see the error displaying

You can follow this tutorial to connect to a MYSQL RDS Database on AWS.
So you can check if all your tables have been created successfully.
AWS Connect to Database Tutorial
Make sure that you open the port of the RDS database in the security group. Otherwise your local machine can't connect to the Database.

Related

How do I connect an AWS RDS instance and Datagrip?

I have created a AWS RDS database instance and I am trying to connect it to Datagrip. I chose Easy create, MySQL, Freetier and set the name as audiotranscribe. The profile of the instance is as follows:
In Datagrip I selected MySQL as the data source, used the password and username I set the instance up with, and set the hostname as the endpoint:
However, I'm getting the error:
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up. java.net.UnknownHostException:
Could anybody explain what I'm doing wrong? Thanks.
The instance is not publicly accessible, so you will not be able to connect to it from the Internet. You will need to either make it publicly accessible (not a good idea) or connect to it through a VPN.

AWS connect to database

I created a database on AWS - RDS.And created a nodes app.
On MySql Workbench localhost I connected to database using endpoint and it was success and I got data on localhost/users
I deployed the nodejs app server to AWS but I did not get any data when I tried to call https://xalynj2ul4.execute-api.us-west-2.amazonaws.com/staging/users.
Try white-listing your node server in mysql host config file by entering your server ip in it

Unable to connect from local machine to AWS RDS db instance

i am trying to connect AWS db instance through MySQL workbench, the current rdb instance engine is MYSQL 5.6.23 also i am under the free tier plan in AWS ap-southeast region (Singapore)
These are the follwing steps in MySQL workbench
The user name and password is already set by me when i click the Test connection i got error always like this in the below image
So i go to the RDS Security group of this instance amrita2016-rds (sg-970f10f2) in AWS and Add an inbound rule to that group for allowing connections from my machine see the image
after that i tried once again through MYSQL workbench getting same error also i am working under domain network . Please help me to resolve this issue

aws web app error after deleting rds instance

I am developing website on aws instance with drupal 7 web app, and it is connected to the aws's mysql server (rds).
I deleted my rds instance "my-db-instance" few days ago, and now my drupal web app running on my ec2 instance is giving me this error.
PDOException: SQLSTATE[HY000] [2005] Unknown MySQL server host 'my-db-instance.cnzzdhtcyxjs.us-east-1.rds.amazonaws.com' (2) in lock_may_be_available() (line 167 of /var/www/html/includes/lock.inc).
'my-db-instance.cnzzdhtcyxjs.us-east-1.rds.amazonaws.com' is my deleted rds instance network address.
How can I solve this problem??
So after delete the rds, did you create a new one and restore the database to new RDS mysql?
Not sure which application you are running, you need find out the config file and replace the rds name my-db-instance.cnzzdhtcyxjs.us-east-1.rds.amazonaws.com with new rds.

Can't access AWS RDS MySQL from Webserver

I have an AWS RDS MySQL instance that I'm able to connect to from my personal desktop using MySQL workbench and a PHP page, but once I put the PHP page on my webserver, I get the following error:
Error: Unable to connect to MySQL. Debugging errno: 2003 Debugging error: Can't connect to MySQL server on '[SERVERVNAME].ciuo9o7t5ksk.us-west-2.rds.amazonaws.com' (111)
I've searched and found that typically it is because the incoming IP rules don't allow the port, but I set the security settings to allow all incoming IPs (and I certainly didn't add any special rule for my perosnal PC IP), so not sure what I'm missing.
I use netfirms for webhosting - they told me that I'll need to configure my AWS instance, but I don't know what I'm missing.
First please check which security group is attached with the AWS RDS Mysql Instance,
Click on the attached security group and all the rule like this