Invalid input Only "mysql2" is available options for "--driver"

I'm trying to run drizzle-kit introspect:mysql by following the docs and I have the config file:
import type { Config } from "drizzle-kit";
import dotenv from "dotenv";
dotenv.config({ path: " .env.local" });

export default {
schema: "./lib/db/schema.ts",
out: "./drizzle",
connectionString: process.env.DATABASE_URL,
} satisfies Config;
import type { Config } from "drizzle-kit";
import dotenv from "dotenv";
dotenv.config({ path: " .env.local" });

export default {
schema: "./lib/db/schema.ts",
out: "./drizzle",
connectionString: process.env.DATABASE_URL,
} satisfies Config;
and in my package.json I have:
"introspect": "drizzle-kit introspect:mysql"
"introspect": "drizzle-kit introspect:mysql"
in my scripts. But when I go to run "npm run introspect" I get the error:
drizzle-kit: v0.19.2
drizzle-orm: v0.27.0

No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/user/Code/testproject/drizzle.config.ts'
Invalid input Only "mysql2" is available options for "--driver"
drizzle-kit: v0.19.2
drizzle-orm: v0.27.0

No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/user/Code/testproject/drizzle.config.ts'
Invalid input Only "mysql2" is available options for "--driver"
1 Reply
Andrii Sherman
https://orm.drizzle.team/kit-docs/config-reference Please check the config references. Outdated block for introspect will be fixed
Want results from more Discord servers?
Add your server