When I run the server, the tables are created in my local Mac MySQL database, but then I get this error:
SequelizeDatabaseError: Deadlock found when trying to get lock; try restarting transaction
at Query.formatError (/Users/rowang/Documents/cookbook-github/node_modules/sequelize/lib/dialects/mysql/query.js:265:16)
at Query.run (/Users/rowan/Documents/cookbook-github/node_modules/sequelize/lib/dialects/mysql/query.js:77:18)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /Users/rowang/Documents/cookbook-github/node_modules/sequelize/lib/sequelize.js:619:16
at Function.sync (/Users/rowang/Documents/cookbook-github/node_modules/sequelize/lib/model.js:1349:11)
at async Promise.all (index 2)
Any ideas?
When I run the server, the tables are created in my local Mac MySQL database, but then I get this error:
Any ideas?