mysql4迁移5_(mysql)从digikam 4. *迁移到5. *时的数据库迁移难度

news/2024/7/7 6:00:14

由于我的旧数据库中存在一些不一致,我遇到了同样的问题.修复后(主要是删除一些死引用)进行升级.我似乎还有另一个问题,但可能与db无关.

这将显示您的问题(除了根标签外都应为空):

select * from Images where album not in (select Albums.id from Albums);

select id, icon from Albums where icon != 0 and icon not in (select id from Images);

select * from Albums where Albums.albumRoot not in (select AlbumRoots.id from AlbumRoots);

select * from ImageHaarMatrix where imageid not in (select id from Images);

select * from ImageInformation where imageid not in (select id from Images);

select * from ImageMetadata where imageid not in (select id from Images);

select * from VideoMetadata where imageid not in (select id from Images);

select * from ImagePositions where imageid not in (select id from Images);

select * from ImageComments where imageid not in (select id from Images);

select * from ImageCopyright where imageid not in (select id from Images);

select * from Tags where pid != 0 and pid not in (select id from Tags);

select id, icon from Tags where icon != 0 and icon not in (select id from Images);

select * from ImageTags where tagid not in (select id from Tags);

select * from ImageTags where imageid not in (select id from Images);

select * from ImageProperties where imageid not in (select id from Images);

select * from ImageHistory where imageid not in (select id from Images);

select * from ImageRelations where subject not in (select id from Images);

select * from ImageRelations where object not in (select id from Images);

select * from ImageTagProperties where imageid not in (select id from Images);

select * from TagProperties where tagid not in (select id from Tags);

select * from ImageTagProperties where tagid not in (select id from Tags);

还有一个修复脚本可以在源头找到.

而我刚才了解到,5.2.0已于两天前发布!


http://www.niftyadmin.cn/n/1999908.html

相关文章

35 夷陵之战

35 夷陵之战 刘备占据荆州,却最终被孙权夺了回去,还搭上了左膀右臂——关羽的一条性命。这对于正打算大展鸿图的刘备,无疑是沉重打击。不肯善罢甘休的刘备随后发动了意在夺回荆州的夷陵之战,那么刘备究竟是如何指挥这场战争的呢&…

三维视觉国际会议首度在中国举办

3DV——International Conference on 3 Dimensional Vision(三维视觉国际会议),自2013年成立以来,逐渐成为计算机视觉和图形学的三维研究领域中的重量级会议,每年都有来着世界各地的专家学者到会进行交流。去年&#x…

常用mysql引擎及工作原理_了解MySQL存储引擎工作原理

MySql数据库最大的特色就是其插件式的存储引擎架构,本文主要介绍MySql常用的存储引擎,为开发时选择合适的存储引擎提供参考。1. MySql体系结构#在介绍存储引擎之前先来介绍下MySql的体系结构,以便大家知道存储引擎在MySql整个体系中处于什么位…

postman提取返回值_postman 上一个接口的返回值作为下一个接口的入参

在使用postman做接口测试的时候,在多个接口的测试中,如果需要上一个接口的返回值作为下一个接口的入参,其基本思路是:1、获取上一个接口的返回值2、将返回值设置成环境变量或者全局变量3、设置下一个接口的参数形式列子&#xff1…

36 永安托孤

36 永安托孤  刘备在弥留之际把自己的儿子刘禅托付给诸葛亮,这就是著名的“永安托孤”,后人常把这看作是刘备的忠厚和对诸葛亮的信任。可是也有人认为,这是刘备的狡诈,是为了防止诸葛亮专权、篡权,而给诸葛亮套上的…

centos 软件安装的三种方式

Linux下面安装软件的常见方法: 1.yum 替你下载软件 替你安装 替你解决依赖关系 点外卖 缺少的东西 外卖解决 1).方便 简单2)没有办法深入修改 yum install -y tree 2.rpm 自己下载软件包 自己安装 自己解决依赖 半成品 缺少的东西 自己解决1)安装 解决依赖复杂 rpm -ivh treex…

python装饰器应用论文_python 装饰器之应用示例

import timeimport hashlibimport pickleimport threading#装饰函数缓存应用cache {}def is_obsolete(entry,duration):return time.time() - entry[time]>durationdef compute_key(function,args,kw):key pickle.dumps((function.__name__,args,kw))return hashlib.sha1(k…

noip欢乐赛10.24 分火腿

分火腿 题目描述: 小月言要过四岁生日了,她的妈妈为她准备了n根火腿,她想将这些火腿均分给m位小朋友,所以她可能需要切火腿。为了省事,小月言想切最少的刀数,使这n根火腿分成均等的m份。请问最少要切几刀&a…