Ejabberd Chat Log Save

Source: Internet
Author: User
Tags svn first row

Load the latest Ejabberd module SVN co https://svn.process-one.net/ejabberd-modules installation Module CD./ejabberd-modules/mod_archive/ Trunk
./build.sh copy Ebin to ejabberd module library CP ebin/*.beam/usr/local/ejabberd/lib/ejabberd/ebin Modify EJABBERD.CFG {MOD_ARCHIVE_ODBC , [
{database_type, "MySQL"},
{Default_auto_save, true},
{Enforce_default_auto_save, false},
{Default_expire, infinity},
{enforce_min_expire, 0},
{Enforce_max_expire, infinity},
{replication_expire, 31536000},
{session_duration, 1800},
{wipeout_interval, 86400}] }, add the above to the module to import the data structure mysql> source Src/mod_archive_odbc_mysql.sql Note: For the first row of the SQL file set Table_type=innodb, you may get an error when executing , I test using MySQL5.5, can modify into set Default_storage_engine=innodb restart Ejabberd, try to chat, in the Ejabberd database has archive_messages table will save the chat record


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.