Home >Database >Mysql Tutorial >[原]XMPP协议学习笔记六(搭建Tigase开发环境)_MySQL

[原]XMPP协议学习笔记六(搭建Tigase开发环境)_MySQL

WBOY
WBOYOriginal
2016-06-01 13:07:451179browse
  • 第三步,调整项目结构,右键Properties,在Source中点击Add Folder,勾选src/main/java,src/main/resource和src/test/java三项
  • 执行数据库脚本,我使用的是Mysql数据库,脚本位置在根目录下database/mysql-schema-5-1.sql,这里我遇到了一点问题,通过Mysql命令行执行总是不成功,最后没办法了使用tigase的安装包来执行脚本才成功,原因未知。
  • 修改根目录下etc文件夹下的init-mysql.properties文件为:
    config-type = --gen-config-def--admins = admin@172.17.110.7--user-db = mysql--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigasedb&password=tigasedb--virt-hosts = 172.17.110.7--debug = server
  • 在类tigase.server.XMPPServer右键选择Run As>Run Configurations,在Arguments选项卡的Program arguments栏中输入:--property-file etc/init-mysql.properties,在VM arguments栏中输入:
    -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver-server -Xms100M -Xmx200M -XX:PermSize=32m -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=128m
    然后点击Run,运行成功
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn