幽梦琉璃鱼
skript版本是2.6.4
已下载SQLibrary-7.1
数据库已用navicat新建数据库名字为skript
下面是skript的config设置
        MySQL:
                # A MySQL database example, with options unrelated to MySQL removed.
               
                type: MySQL
                # type: MySQL
               
                pattern: synced_.*# this pattern will save all variables that start with 'synced_' in this MySQL database.
               
                host: localhost
                port: 3306
                user: root
                password: 123456
                database: skript
                table: variables21
               
                monitor changes: true
                monitor interval: 20 seconds

下面是后台显示报错
[18:36:29 ERROR]: #!#!
[18:36:29 ERROR]: #!#! ===!!!=== Skript variable load error ===!!!===
[18:36:29 ERROR]: #!#! Unable to load (all) variables:
[18:36:29 ERROR]: #!#! Cannot connect to the database 'MySQL'! Please make sure that all settings are correct and that the database software is running.
[18:36:29 ERROR]: #!#!
[18:36:29 ERROR]: #!#! Skript will work properly, but old variables might not be available at all and new ones may or may not be saved until Skript is able to create a backup of the old file and/or is able to connect to the database (which requires a restart of Skript)!
[18:36:29 ERROR]: #!#!



奇ger
  1. Cannot connect to the database 'MySQL'!
复制代码

你这里也说了,无法连接到MySQL,你确定是创建的是MySQL数据库吗,如果是服务开了吗
然后再去检查用户名密码和库。

幽梦琉璃鱼
奇ger 发表于 2023-4-23 19:48
你这里也说了,无法连接到MySQL,你确定是创建的是MySQL数据库吗,如果是服务开了吗
然后再去检查用户名密 ...

已经建好了database名字就是skript,数据库是开着的,其他插件都可以正常运行

奇ger
幽梦琉璃鱼 发表于 2023-4-23 20:31
已经建好了database名字就是skript,数据库是开着的,其他插件都可以正常运行 ...

如果都正确那就不知道了,尝试更新插件或者联系作者?

幽梦琉璃鱼
有没有用过skript数据库连接的大佬指点下,真的很需要

第一页 上一页 下一页 最后一页