📜  父:[错误:SQLITE_READONLY:尝试写入只读数据库] { - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:19.012000             🧑  作者: Mango

代码示例1
//add chown www-data before the database path
const sequelize = new Sequelize({
  dialect: 'sqlite',
  storage: ' chown www-data ./dev-module/database/database.sqlite',
   // sync after each association (see below). If set to false, you need to sync manually after setting all associations. Default: true
   syncOnAssociation: true,

});