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]: #!#!
已下载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]: #!#!
- Cannot connect to the database 'MySQL'!
你这里也说了,无法连接到MySQL,你确定是创建的是MySQL数据库吗,如果是服务开了吗
然后再去检查用户名密码和库。