Mike Ross
BABetter Auth
•Created by Mike Ross on 4/5/2025 in #help
Better Auth + MySQL - Failing Schema Generation
Thank you for your help. I was able to fix the issue, which boils down to very basic mistake / misunderstanding. While I had tried to install the mysql2 package, I then also updated the import statement to "import {createPool } from "mysql2", which then lead to an error once again. It now works as expected.
8 replies
BABetter Auth
•Created by Mike Ross on 4/5/2025 in #help
Better Auth + MySQL - Failing Schema Generation
Will do
8 replies
BABetter Auth
•Created by Mike Ross on 4/5/2025 in #help
Better Auth + MySQL - Failing Schema Generation
When using the
mysql2-promise
package (https://classic.yarnpkg.com/en/package/mysql2-promise) in combination with this better-auth configuration:
I get the following error when running npx @better-auth/cli@latest generate
:
Note that the mysql database is up and running and accessible.8 replies