2016-08-06 2 views
0

ejabberd 16.06 + mysql 5.5.50을 사용합니다. 메시지 히스토리가 저장되지 않습니다. ejabberd 16.06 + mysql 5.5.50, 메시지 히스토리가 저장되지 않음

내 ejabberd.yml : 데이터베이스 구조의 형성

## MySQL server: 

odbc_type: mysql 
odbc_server: "freldo" 
odbc_port: 3306 
odbc_database: "ejabberd" 
odbc_username: "ejabberd" 
odbc_password: "ejabberd" 

modules: 
... 
mod_mam: 
    db_type: odbc 
    default: always 

, 내가 사용 :

@ejabberd_sql:check_error:1039 SQL query 'SELECT timestamp, xml, peer,
kind, nick FROM (SELECT timestamp, xml, peer, kind, nick FROM archive
WHERE username='test' and bare_peer='[email protected]' ORDER BY timestamp
DESC limit 21) AS t ORDER BY timestamp ASC;' failed: "#42S22Unknown
column 'kind' in 'field list'"

내가 저장하지 않은 메시지 : mysql.sql

나는 오류가 데이터베이스 내역.

+0

종류 열 이름이 아카이브 테이블에 없습니다. –

답변

0

mysql을 버전 5.6 이상으로 업그레이드하면 문제가 해결됩니다.

ejabberd make use of FULLTEXT indexes with InnoDB. Thus, you need MySQL 5.6 or greater to use with ejabberd.

Note: If you do not store message archive in database however, you can try using older 5.5 version. You may need to adapt MySQL database schema to cope with those older MySQL versions.

메시지 기록을 저장하려는 경우 MySQL 버전 5.6.4 이상은 recommended입니다.

+0

openfire가 계속되었고 이러한 문제를 잊어 버렸습니다. 도와 주셔서 감사합니다. – proton