数据库迁移到云服务遇到1075 - Incorrect table definition
2023-05-01 08:32 来自 𝕷𝖎𝖑𝖏𝖆𝖈𝖐 发布@ Discuz!问题求助
这几天把数据库迁移到云服务上,一直报这个错 1075 - Incorrect table definition; 查了一下好像是数据库版本的问题?之前数据库版本是mysql5.6.现在云服务器上的版本是mysql5.7. 不知道要如何解决,请大神们帮忙. 具体报错信息如下:
1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
--
-- AUTO_INCREMENT for table `pre_common_member_security`
--
ALTER TABLE `pre_common_member_security`
MODIFY `securityid` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pre_common_member_stat_field`
--
ALTER TA
1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
--
-- AUTO_INCREMENT for table `pre_common_member_security`
--
ALTER TABLE `pre_common_member_security`
MODIFY `securityid` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pre_common_member_stat_field`
--
ALTER TA



