This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Preserve database when updating?

Tags: None
(comma "," separated)
peppergrower
Registered Member
Posts
25
Karma
0
OS

Preserve database when updating?

Mon Sep 07, 2009 1:50 pm
Since I switched to using the newest versions from git, I build and install new versions much more frequently. What is the likelihood that one of these times, moving from one development version to another, my database will be incompatible with the new version and I'll lose the data stored there? If the chance is non-zero, is there anything I can do to help protect/preserve the database regardless of upgrades?

(I'm happy to have the option to use an external database, by the way--thanks very much to the developers who worked on that!)
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Well, if you are running the development version, I suggest you make a regular backup of your database so you have a fall back version if something should go wrong.
Running a development version also means to be prepared to have stuff breaking, something that tends to happen quite often, especially once a final release is tagged. Don't forget that development == pre-alpha version :) even if our current git is more alpha like.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
peppergrower
Registered Member
Posts
25
Karma
0
OS
That makes sense. Thanks! I'll starting backing it up regularly. So it sounds like the danger, then, comes from bugs rather than changes to the schema that would make an older database incompatible?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Impossible to say, that is surely something you should ask the devs. AFAIK, there is no database scheme changing ahead, at least not in the near future.

In the 2.2 version, most of the database bugs have been corrected anyway, it's more the database queries that are used to display stuff that might go wild every now and then, those still do for the Various Artists for now.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
fpe
Registered Member
Posts
15
Karma
0
OS

Re: Preserve database when updating?

Wed Sep 09, 2009 10:01 am
After updating to today's git version, it deleted all tracks from my MySQL database and rescanned my music.

But then it messed up comletely, since obviously only part of my database was deleted: Most songs suddenly had a wrong artist assigned to, and I fear the statistics didn't match, either.
So it seems that there was something messed up with the unique id's of artists/tracks/urls in the database. :(
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Preserve database when updating?

Wed Sep 09, 2009 10:16 am
What version did you upgrade from? I can't remember you having told that...

I didn't have a forced rescan since the switch from 2.1 to 2.2, which is logical since the database was updated. You were talking about database changes in 2.2-git and I told you there were none inside of that version, and there still are none.

Also, are you talking about the embedded mysqle version or about an external database, available in 2.2-git?

I find it most unlikely that you have a database corruption within 2.2-git, I never heard of but from your description your database seems to be indeed mixed up. No idea how this would have happened...

Could you be a bit more precise of what you did exactly, especially from what version you did upgrade? Rebuilding means just git pull (--rebase if you have a personal local branch) in the source folder and make install in the build folder. I do this as soon as new code changes are made in git master and have never experienced what you describe, nor has it been reported by anyone.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
fpe
Registered Member
Posts
15
Karma
0
OS

Re: Preserve database when updating?

Wed Sep 09, 2009 10:20 am
The version I updated from was the git from about a month ago. I use an external MySQL database.
I updated via git pull and make install, then I did a kbuildsycoca4 --noincremental.
peppergrower
Registered Member
Posts
25
Karma
0
OS

Re: Preserve database when updating?

Wed Sep 09, 2009 12:52 pm
Mamarok wrote:I didn't have a forced rescan since the switch from 2.1 to 2.2, which is logical since the database was updated. You were talking about database changes in 2.2-git and I told you there were none inside of that version, and there still are none.

Not that it's a huge deal, but this is someone else you're talking to now. :) I haven't run into any big problems yet, though I'm sorry this person has.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Preserve database when updating?

Wed Sep 09, 2009 12:55 pm
peppergrower wrote:Not that it's a huge deal, but this is someone else you're talking to now. :) I haven't run into any big problems yet, though I'm sorry this person has.

Oops, sorry, should have read more closely :(


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Preserve database when updating?

Wed Sep 09, 2009 12:57 pm
fpe wrote:The version I updated from was the git from about a month ago. I use an external MySQL database.
I updated via git pull and make install, then I did a kbuildsycoca4 --noincremental.

AFAIK that last command shouldn't be necessary, it builds the files correctly here after make install.
Also, I don't know much about external databases, AFAIK this was not part of the feature a month ago...


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
fpe
Registered Member
Posts
15
Karma
0
OS
Before the update, the external database was only available by manual editing of ~/.kde4/share/config/amarokrc, like posted on the blog in http://amarok.kde.org/blog/archives/106 ... vered.html
New to this version is the possibility to enable an external database in Amarok's settings menu.
Anyway, my data loss was not that big, in "exchange" for that, I finally was able to re-import my old Amarok 1.4 mySQL database with this new version, since that long-time bug seems to be fixed at last :)


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]