Skip to content

Bug: @koishijs/plugin-bind在 mysql(mariadb)  不正常 #1494

@obtar

Description

@obtar

Describe the bug

正常情况下
database服务为database-sqlite
bind在sqlite自动创建onebot的channel和binding数据。


database服务转为database-mysql
不会自动创建onebot用户的binding数据,channel正常自动创建。

Image

平台绑定服务无法使用(获取验证码无反应)

Image

koishi和浏览器控制台没有log

onebot用户添加用户组
浏览器控制台

Image

koishi 没有有关的log

callme命令回应异常

沙盒

Image

onebot平台

Image

Steps to reproduce

adapter服务adapter-onebot,database服务启用 database-mysql ;停用 database-sqlite。

Expected behavior

bind在mysql自动创建onebot帐户(创建binding数据)

Screenshots

koishi日志

Image

没有有关日志

mariadb查询日志

Image

mariadb错误日志

Image

Image

Versions

  • OS: Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
  • Platform: Onebot
  • Node version: 20.16.0
  • Npm version: 10.8.2
  • Koishi version: 4.18.7

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions