【发布时间】:2021-05-22 10:32:51
【问题描述】:
我已将迁移添加到我们基于 TypeORM 的后端,并且使用 ormconfig 中的以下设置在本地一切正常:
synchronize: false,
migrations: ['src/migrations/*{.ts,.js}'],
cli: {
migrationsDir: 'src/migrations',
},
migrationsRun: true,
在与我们的 google cloudsql 数据库建立此连接时,出现此错误。
QueryFailedError: ER_SPECIFIC_ACCESS_DENIED_ERROR: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
似乎 GCP 不允许为用户设置 SUPER 权限,所以有人知道如何使 TypeORM 连接,迁移为真,并且没有这个要求吗?
【问题讨论】:
标签: mysql google-cloud-platform google-cloud-sql typeorm