Having issue connecting to mysql hosted in AWS

I am trying to connect to a mysql database hosted on AWS but i am getting an error that my connection strings are not correct or something but the same details work when I use DBeaver to view my database. Can someone help with this question? I am totally new to drizzle
No description
7 Replies
Ali Sultani
Ali SultaniOP2y ago
No description
Mykhailo
Mykhailo2y ago
Hello, @Ali Sultani! I think you should use only uri or only
{
host: string;
port?: number;
user?: string;
password?: string;
database: string;
}
{
host: string;
port?: number;
user?: string;
password?: string;
database: string;
}
for db credentials
Ali Sultani
Ali SultaniOP2y ago
I tried that too but still won't work
Mykhailo
Mykhailo2y ago
Could you please console log the credentials?
Ali Sultani
Ali SultaniOP2y ago
Yeah they show up in the console Maybe drizzle doesn't support mysql hosted on AWS?
Mykhailo
Mykhailo2y ago
Strange, drizzle should support it. Am I right that you are using AWS RDS?
Ali Sultani
Ali SultaniOP2y ago
Hey @solo thanks for your help. It turned out to be the dotenv variables after all frickin dotenv

Did you find this page helpful?