Repository navigation
Prisma 7.10.0 MySQL migrate status: Minimum Required Database Privileges #30890
Replies: 3 comments
No database-wide SELECT, write permissions, or DDL privileges are required.
|
|
Here is the breakdown of the exact privileges needed for 1. Is
|
|
I tested Prisma CLI/Schema Engine 7.10.0 against MySQL 8.0.46 using a separate account with only this table-level grant, in addition to its implicit GRANT SELECT ON `your_database`.`_prisma_migrations`
TO 'status_reader'@'your_client_host';With an existing The server query log showed only reads of session/version variables and One correction to the broader-grant suggestion above: This result is scoped to an initialized database with the history table already present; it doesn't establish the same grant procedure for a database without that table. |
Uh oh!
There was an error while loading. Please reload this page.
Hello Prisma team,
I am using Prisma CLI and Schema Engine version 7.10.0 with MySQL 8.0.
I need to run the following command only to verify migration status:
prisma migrate status --config=prisma.stage10.config.tsI want to use a database account with the minimum privileges required for this status check, without applying migrations or modifying application data.
Could you please clarify:
SELECTpermission on the_prisma_migrationstable sufficient forprisma migrate statusin Prisma 7.10.0?INFORMATION_SCHEMA, orSHOW TABLES?I want to confirm the required privileges before running the diagnostic. I will not apply migrations or change database permissions until the requirements are clear.
Thank you!
All reactions