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 SultaniOP10mo ago
No description
Mykhailo
Mykhailo10mo 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 SultaniOP10mo ago
I tried that too but still won't work
Mykhailo
Mykhailo10mo ago
Could you please console log the credentials?
Ali Sultani
Ali SultaniOP10mo ago
Yeah they show up in the console Maybe drizzle doesn't support mysql hosted on AWS?
Mykhailo
Mykhailo10mo ago
Strange, drizzle should support it. Am I right that you are using AWS RDS?
Ali Sultani
Ali SultaniOP10mo ago
Hey @solo thanks for your help. It turned out to be the dotenv variables after all frickin dotenv
Want results from more Discord servers?
Add your server