Facing issue connecting to an AWS RDS Mysql DB. Ge...
# support-questions-legacy
b
Facing issue connecting to an AWS RDS Mysql DB. Getting error: "What caused the crash: Failed to initialize pool: Index 1 out of bounds for length 1"
r
Hey
Hey
What config are you giving to the core to connect to the db?
b
Hi!
I'm using this command:
docker run \ -p 3567:3567 \ -e MYSQL_USER="username" \ -e MYSQL_PASSWORD="password" \ -e MYSQL_HOST="host" \ -e MYSQL_PORT="3306" \ -e MYSQL_DATABASE_NAME="supertokens" \ -d registry.supertokens.io/supertokens/supertokens-mysql
And just adding the user password host and db name credentials provided by aws rds
Worked. My bad, the database was not present in RDS. Forgot to create it first.
2 Views