svn co svn.process-one.net/ejabberd-modules 
               {export_last, last},
               {export_offline, offline},
               {export_passwd, passwd},
               {export_private_storage, private_storage},
               {export_roster, roster},
               {export_vcard, vcard},
               {export_vcard_search, vcard_search}],                {export_last, last},
               {export_offline, offline},
               {export_passwd, passwd},
               {export_private_storage, private_storage},
               {export_roster, roster},
               {export_vcard, vcard},
                 {export_motd, motd},
                 {export_motd_users, motd_users},
                 {export_muc_registered, muc_registered},
                 {export_muc_room, muc_room},
                 {export_sr_group, sr_group},
                 {export_sr_user, sr_user},
               {export_vcard_search, vcard_search}], ls /var/spool/jabber/*.DCD and getting the table names in mnesia as output.cd ejabberd-modules/mod_admin_extra/trunk
./build.sh- jabber-):
ejabberdctl export2odbc /tmp/test/
txt sql-, mysql. ( phpMyAdmin). , - .
- mnesia, . , - 14 .
, .
, !
ejabberd mysql. ( ) .
,
{auth_method, odbc}
{odbc_server, {mysql, "host", "db", "user", "pass"}}.
,
{host_config, "domain2", [{odbc_server, {mysql, "host2", "db2", "user2", "pass2"}}]}.
, XXX->XXX_odbc, :
mod_announce_odbc
mod_blocking_odbc
mod_last_odbc
mod_muc_odbc
mod_offline_odbc
mod_privacy_odbc
mod_private_odbc
mod_pubsub_odbc
mod_roster_odbc
mod_shared_roster
mod_vcard_odbc
mod_vcard_xupdate_odbc
, , 2009 , , - . . , , .- jabber-):
ejabberdctl export2odbc /tmp/test/
txt sql-, mysql. ( phpMyAdmin). , - .
- mnesia, . , - 14 .
, .
, !
ejabberd mysql. ( ) .
,
{auth_method, odbc}
{odbc_server, {mysql, "host", "db", "user", "pass"}}.
,
{host_config, "domain2", [{odbc_server, {mysql, "host2", "db2", "user2", "pass2"}}]}.
, XXX->XXX_odbc, :
mod_announce_odbc
mod_blocking_odbc
mod_last_odbc
mod_muc_odbc
mod_offline_odbc
mod_privacy_odbc
mod_private_odbc
mod_pubsub_odbc
mod_roster_odbc
mod_shared_roster
mod_vcard_odbc
mod_vcard_xupdate_odbc
, , 2009 , , - . . , , .- jabber-):
ejabberdctl export2odbc /tmp/test/
txt sql-, mysql. ( phpMyAdmin). , - .
- mnesia, . , - 14 .
, .
, !
ejabberd mysql. ( ) .
,
{auth_method, odbc}
{odbc_server, {mysql, "host", "db", "user", "pass"}}.
,
{host_config, "domain2", [{odbc_server, {mysql, "host2", "db2", "user2", "pass2"}}]}.
, XXX->XXX_odbc, :
mod_announce_odbc
mod_blocking_odbc
mod_last_odbc
mod_muc_odbc
mod_offline_odbc
mod_privacy_odbc
mod_private_odbc
mod_pubsub_odbc
mod_roster_odbc
mod_shared_roster
mod_vcard_odbc
mod_vcard_xupdate_odbc
, , 2009 , , - . . , , .Source: https://habr.com/ru/post/154535/
All Articles