ejabberd失败连接mysql

bzzcjhmw  于 2021-06-21  发布在  Mysql
关注(0)|答案(1)|浏览(422)

我的ejabberd.log:

2018-05-15 21:40:05.965 [error] <0.414.0>@ejabberd_sql:log:950 p1_mysql_conn: post_start error connect_failed

2018-05-15 21:40:05.965 [info] <0.414.0>@ejabberd_sql:connecting:339 mysql connection failed:

原因:连接失败30秒后重试

MySQL server:

sql_type: mysql

sql_server: "ejabberd"

sql_database: "ejabberd"

sql_username: "ejabberd"

sql_password: ""

sql_port: 3306

默认数据库:sql
sql\池\大小:10
新的\u sql \u架构:true
管理员:

user:

- "admin@localhost"

- "admin@server"

s2s\u成形器:快速
模块:
mod\u admin\u update\u sql:{}
mod\ U花名册:

db_type: sql

default: always

在此处输入图像描述

z4bn682m

z4bn682m1#

遵循以下步骤https://docs.ejabberd.im/admin/databases/mysql/ 在文档ejabberd中,如果您只想迁移数据,请不要提及身份验证##auth#u方法:后端的sql。

1. Create ejabberd user
2. Create ejabberd database 
3.  test the user and database
4. adapt MySQL schema whit command in mysql source C://path.mysq.sql;
5. you can show the list of SQL tables.
6. Adding MySQL connection configuration to ejabberd config file
7. Switch modules to use MySQL instead of Mnesia
8. Migrating data from internal database to MySQL
9. ejd2sql:export(<<"imserver.com">>, sql). //name server ejabberd
10. show data in schema work breanch.

相关问题