-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin-mysql 在启动时报出语法错误 #238
Comments
请问你这边解决了吗,我这边也是这样 |
解决应该解决了吧 |
插件列表:
|
离谱,你的报错也是和他的一样吗 |
我的是这样的
|
另外手动创建user表之后会继续报错如下
|
这段代码你能直接在你的数据库执行吗?
|
我看着像某个插件的导致的问题(猜的 |
用这段得到的报错如下(版本 10.6.3-MariaDB 和5.6.51 MySQL均如此)
|
只保留mysql插件和onebot也这样,我一会用windows试试吧 |
具体还是要看 shigma 来看到底是啥问题了 |
还有一件事,你就算没安装,引入了也是会奏效的 |
这是 koishi 3.13.1 新引入的问题,回退版本到 3.13.0 可以解决 |
mongo不会报创建错误,koishi可以正常启动,但是要使用数据库的插件(如teach)依然会报错,如下
另外刚才Windows虚拟机上试了一下mysql也不行(同样的报错) |
好的,感谢 |
我今天在扩展自己的数据表时也出现了这个问题。
plugin-mysql中这一行定义了每个小段sql,它的成品就是 koishi/packages/plugin-mysql/src/database.ts Line 145 in cb23788
|
你这个应该是 dup 了,继续在那个 issue 下面评论最好 |
理论上这都应该单独再开一个 issue 的( |
好吧,我感觉还是那个建表的问题,所以觉得 dup 了 |
同一个问题,我猜测是某些原因导致建表语句里缺少了字段名 |
不说我都忘记关了,这个 bug 已经修复了,暂时还没有发版 |
Describe the bug
在执行
npx koishi start
命令时,koishi-plugin-mysql
创建尝试初始化数据库,报出 mysql 语句语法错误。To Reproduce
在我的环境中执行
Expected behavior
正常启动
Screenshots
Versions
Additional context
插件列表:
The text was updated successfully, but these errors were encountered: