mysql throws Unknown column #39;mac#39; in #39;field list#39;(mysql 在“字段列表中抛出未知列“mac)
问题描述
org.mozilla.javascript.WrappedException: Wrapped org.jaggeryjs.scriptengine.exceptions.ScriptException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'mac' in 'field list' ([driver]/driver.js#32)
我在 Wso2 EMM 1.1.0 从 1.0.0 升级后遇到此错误
I encounter this error in Wso2 EMM 1.1.0 after upgrading from 1.0.0
在为 wso2emm_db 迁移 mysql db 时有人遇到过这个问题吗?
did anyone face this issue while migrating mysql db for wso2emm_db?
推荐答案
设备表的mysql.sql脚本存在问题,已在公共 JIRA .在 <PRODUCT_HOME>/dbscripts/emm/mysql.sql 中,将设备表的 wifi_mac 字段更改为 mac,如下所示:
There is an issue with the mysql.sql script for devices table and it has been reported in the public JIRA . In <PRODUCT_HOME>/dbscripts/emm/mysql.sql, change the field wifi_mac for devices table to mac as shown below:
CREATE TABLE IF NOT EXISTS `devices` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tenant_id` int(11) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
`platform_id` int(11) DEFAULT NULL,
`reg_id` longtext,
`os_version` varchar(45) DEFAULT NULL,
`properties` text,
`created_date` datetime DEFAULT NULL,
`status` varchar(10) DEFAULT NULL,
`byod` smallint(6) DEFAULT '1',
`deleted` int(11) DEFAULT '0',
`vendor` varchar(11) DEFAULT NULL,
`udid` VARCHAR(4096) NULL DEFAULT NULL,
`push_token` VARCHAR(256) NULL DEFAULT NULL,
**`mac`** varchar(100) NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
这篇关于mysql 在“字段列表"中抛出未知列“mac"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:mysql 在“字段列表"中抛出未知列“mac"
基础教程推荐
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 无法解决整理冲突 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
