gpt4 book ai didi

mysql - yeoman 全栈生成器社交 Oauth 问题

转载 作者:行者123 更新时间:2023-11-28 23:19:09 25 4
gpt4 key购买 nike

当我将数据类型 JSON 分配给 facebook 和 google(默认情况下在生成器中)时,我遇到了 OAUTH 问题。我的数据库是 mysql 并且出现此错误:

Server failed to start due to error: SequelizeDatabaseError: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'JSON,twitterJSON,googleJSON

如果我设置数据类型:文本或字符串,那么它可以工作,但我不能在 mysql 上查询。这个错误是关于 mariadb 但我使用 mySql 很奇怪!

如何在 MySql 中存储 JSON 数据类型,因为我必须查询,比如查找 facebook.id 等?

引用:https://github.com/angular-fullstack/generator-angular-fullstack/issues/2510

最佳答案

数据类型 JSON 问题

MySql 5.7 支持 JSON 类型。 enter image description here enter image description here

但问题是您正在使用 sequelize。 sequelize 是 node.js 的 ORMsequelize 在 MySql 中不支持 JSON 类型,在 Postgres 中只支持 JSON
另见附件。

enter image description here

最近与他们的成员确认
check here enter image description here

关于mysql - yeoman 全栈生成器社交 Oauth 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42574717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com