-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
AttributeError: 'Mysql' object has no attribute 'db' #4
Comments
使用快速启动
|
是否可以提供一下你的config.json,请删除个人敏感信息 |
mirai-http-api的 cors:
- '*'
host: 0.0.0.0
port: 8080
authKey: Wmy2005eithteen
cacheSize: 4096
enableWebsocket: false
report:
enable: false
groupMessage:
report: true
friendMessage:
report: true
tempMessage:
report: true
eventMessage:
report: true
destinations: []
extraHeaders: {}
heartbeat:
enable: false
delay: 1000
period: 15000
destinations: []
extraBody: {}
extraHeaders: {} amiya的config.json {
"self_id": 123,
"self_passwords": "***",
"admin_id": 736458622,
"mirai_ok": false,
"auth_key": "Wmy2005eithteen",
"server": {
"server_ip": "0.0.0.0",
"server_port": 8080
},
"database": {
"host": "localhost",
"port": 3306,
"user": "root",
"password": "***",
"db": "amiya"
},
"baidu_cloud": {
"enable": false,
"app_id": "",
"api_key": "",
"secret_key": ""
},
"message": {
"limit": {
"seconds": 10,
"max_count": 3
},
"reply_text_max_length": 100
},
"close_beta": {
"enable": false,
"group_id": 1061935528
}
}
|
请将amiya的config中 |
更改为
|
请将miral的setting中 |
成功了。 |
OS:Windows 10
Python version:Python 3.8.2
MySQL version:mysql-8.0.23-winx64
使用Mirai 2.4.0-MCL 1.0.5
config.json已配置与本机相符
数据全部导入到amiya库中,使用查询命令后有返回结果
在第四步报错
The text was updated successfully, but these errors were encountered: