资讯专栏INFORMATION COLUMN

tigase7.02升级8.0

idisfkj / 2044人阅读

摘要:备份配置文件和数据库导出原来的数据库结构和数据备份配置文件升级配置文件执行配置文件当出现如下画面时配置文件以连接到数据库。

备份配置文件和数据库

导出原来的数据库(结构和数据)

备份配置文件

cp ../tigase-server7.02/etc/tigase.conf etc/
cp ../tigase-server7.02/etc/init.properties etc/

升级配置文件
执行配置文件./scripts/tigase.sh upgrade-config etc/tigase.conf
当出现如下画面时

=============================================================================
    Configuration file etc/init.properties was converted to DSL format.
    Previous version of a configuration file was saved at etc/init.properties.old
=============================================================================

配置文件config.tdsl以连接到数据库。

更新数据库结构
./scripts/tigase.sh upgrade-schema etc/tigase.conf
Mysql数据库必须5.7以上版本
成功之后,看到如下界面:

=============================================================================
    Schema upgrade finished

      Data source: default with uri
    jdbc:mysql://HOST/DATABASE?user=USERNAME&password=PASSWORD
    Checking connection to database ok
    Checking if database exists     ok
    Loading schema: Tigase XMPP Server (Core), version: 8.0.0       ok
    Loading schema: Tigase Message Archiving Component, version: 1.3.0      ok
    Loading schema: Tigase MUC Component, version: 2.5.0    ok
    Loading schema: Tigase PubSub Component, version: 3.3.0 ok
    Adding XMPP admin accounts      warning
            Message: Error: No admin users entered
    Post installation action        ok

=============================================================================

启动运行

scripts/tigase.sh start etc/tigase.conf

遇到的问题

升级后,新增了tig_user_credentials表,需要针对原来认证方式存储用户密码,sha1或者plain.,否则会出现无法登陆的问题。

存储聊天记录遇到的问题

先配置聊天记录

message-archive {
  archive-repo-uri = "jdbc:mysql://localhost/tigasedb7?user=root&password=root",
  tags-support = true
  }
  sess-man {
  message-archive {
     default-store-method = "message",
     required-store-method = "body"
  }
  }

乱码问题,修改如下即可解决。

   message-archive {
   archive-repo-uri = "jdbc:mysql://localhost/tigasedb7?user=root&password=root&useUnicode=true&characterEncoding=UTF-8",
   tags-support = true
  }

群消息无法推送,收到new room locked消息体,设置配置文件config.tdsl

  muc {
      "muc-lock-new-room" = false
  }

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/75101.html

相关文章

  • Mysql 8.0版本驱动getTables返回所有库的表的问题

    摘要:如果你是使用的版本驱动,需要将换成需要注意的是版本驱动相关的参数有变化比如版本驱动将参数的默认值由改为了,如果你使用获取所有的表信息,版本驱动将返回所有库的表。 MySQL Connector/J 8.0版本驱动向下兼容之前的5.5+版本MySQL,如果你使用的是5.5+版本MySQL,都可以升级成8.0版本驱动。 如果你是使用的5.X版本驱动,需要将Driver Class换成: ...

    LeexMuller 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<