简体   繁体   English

wso2 emm mysql设备表为空

[英]wso2 emm mysql devices table empty

Working on WSO 2 EMM on debian JAVA6 64 bits with Mysql. 使用Mysql在debian JAVA6 64位上使用WSO 2 EMM。

Datasource is configured correctly, I can see users in WSO2CARBON_DB. 数据源配置正确,我可以在WSO2CARBON_DB中看到用户。 I create a user, download the agent on android and register to the server 我创建一个用户,在android上下载代理并注册到服务器

On the interface, I can see the Android phone but it is not in the table devices in mysql WSO2EMM_DB. 在界面上,我可以看到Android手机,但是它不在mysql WSO2EMM_DB的表设备中。

else, I don't have the application list in the interface 否则,我的界面中没有应用程序列表

No error messages in the console, it's wierd And after a while, the phone doesn't update information anymore. 控制台中没有错误消息,这很奇怪。一段时间后,手机不再更新信息。

Any idea ? 任何想法 ?

Antoine 安托万

Maybe data is not committed to the database. 也许数据没有提交到数据库。 please follow the below doc and see the topic 'How to migrate from H2 to MySQL' and see whether you have configured it correctly. 请遵循以下文档,并查看“如何从H2迁移到MySQL”主题,并查看是否已正确配置。

https://docs.wso2.com/display/EMM110/Upgrading+from+a+Previous+Release https://docs.wso2.com/display/EMM110/Upgradeing+from+a+Previous+Release

Ye I did that, by the way there is an error in master-datasources.xml 是的,我这样做是,在master-datasources.xml中有一个错误

the following line has to be added just after for mysql 对于mysql,必须添加以下行

<defaultAutoCommit>false</defaultAutoCommit>

or it won't work. 否则将无法正常工作。 Else I had to rename field wifi_mac into mac in devices table 否则我必须在设备表中将字段wifi_mac重命名为mac

The problem is only for insert in devices 问题仅适用于插入设备

Just came back to H2 database and it works fine. 刚回到H2数据库,就可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM