azure199
azure199
Explore posts from servers
DTDrizzle Team
Created by azure199 on 9/7/2023 in #help
Cannot find driver! mysql2 or pg.
I apologize. I got it working. I just didn't clearly see that you need to run both npm i drizzle-orm @planetscale/database and npm i drizzle-orm mysql2. I assumed the planetscale and kit install would have everything required. Sorry for the trouble. It's easy to overpass in docs.
14 replies
DTDrizzle Team
Created by azure199 on 9/7/2023 in #help
Cannot find driver! mysql2 or pg.
Which file would that be in to share?
14 replies
DTDrizzle Team
Created by azure199 on 9/7/2023 in #help
Cannot find driver! mysql2 or pg.
Yes, mysql2 from the docs is what I have selected as my driver
14 replies
DTDrizzle Team
Created by azure199 on 9/7/2023 in #help
Cannot find driver! mysql2 or pg.
Maybe a better question is which driver does planetscale use? I thought it would be mysql2.
14 replies
DTDrizzle Team
Created by azure199 on 9/7/2023 in #help
Cannot find driver! mysql2 or pg.
Is this different from the drizzle docs for planetscale? npm i drizzle-orm @planetscale/database npm i -D drizzle-kit
14 replies
DTDrizzle Team
Created by azure199 on 9/7/2023 in #help
Connection SSL/TLS
Ah okay, so you just cant use single quotes within the string. I didn't get that till seeing it for some reason. Thank you for your help!
8 replies
DTDrizzle Team
Created by azure199 on 9/7/2023 in #help
Connection SSL/TLS
Thanks for the direction. I found a solution using url encoding: %7B%22rejectUnauthorized%22%3Atrue%7D. I dont think its the best solution but it works. Do you know how you would do it without using single quotes?
8 replies