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

Moving database from Amarok 1.4 to Amarok 2.1, it's possible?

Tags: amarok amarok amarok
(comma "," separated)
nandelbosc
Registered Member
Posts
25
Karma
0
OS
Hi to all!

I'm using Amarok for more than 3  years, I donate (not a lot) some money, and I very happy with this application.

A few months ago, I was installed Ubuntu 9.04, and Amarok (2.?). My unpleasant surprise arribes when I start Amarok 2 for first time and I can't saw my statistics (how many times I played a song, score, ...). After ask to Saint Google, research in forums, etc... I can't find solution. For this reason I decided to downgrade to Amarok 1.4.

Here my question... after this time, there is a way to save all my Amarok 1 statistics and then import to Amarok 2?

Thank's!
User avatar
JanGerrit
Moderator
Posts
647
Karma
3
OS
Just do:
Settings -> Configure Amarok -> Collection -> Import Collection
and you will get an assistant for importing it.
I use Amarok 2.1.1, but I think Amarok 2.1 is able to do it, too.


Image
User avatar
biffster
Registered Member
Posts
8
Karma
0
OS
JanGerrit wrote:Just do:
Settings -> Configure Amarok -> Collection -> Import Collection
and you will get an assistant for importing it.
I use Amarok 2.1.1, but I think Amarok 2.1 is able to do it, too.


So, what is one to do when that doesn't work? The assistant tries to do the import from my Amarok 1.4 database (MySQL), but fails. The only information returned is "0 tracks imported."
jajaX
Registered Member
Posts
230
Karma
0
OS
Hi !

interesting thread.


regards
jaja
--------
abit Fatal1ty FP-IN9 SLI/Intel Core 2 Quad Q6600/6041 Mo DDR2/2 Asus silent 8600 Gt 512Mo & ACER Aspire 5612 WLMI : kubuntu Maverick Meerkat 11.04 (32 bits) & KDE SC 4.7 - amarok 2.4.1 - kmail2
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
JanGerrit wrote:Just do:
Settings -> Configure Amarok -> Collection -> Import Collection
and you will get an assistant for importing it.
I use Amarok 2.1.1, but I think Amarok 2.1 is able to do it, too.


This only works if you used the default SQLite database in 1.4, not with a MySQL one. Full import from SQLite (including scores and ratings) now works in 2.2-git, but not yet from other databases, sorry.


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 ...
nandelbosc
Registered Member
Posts
25
Karma
0
OS
Ok, thank's for the answers!

I'm wait for amarok 2.2 becomes stable.

Thank's again!
jajaX
Registered Member
Posts
230
Karma
0
OS
Mamarok wrote:
JanGerrit wrote:Just do:
Settings -> Configure Amarok -> Collection -> Import Collection
and you will get an assistant for importing it.
I use Amarok 2.1.1, but I think Amarok 2.1 is able to do it, too.


This only works if you used the default SQLite database in 1.4, not with a MySQL one. Full import from SQLite (including scores and ratings) now works in 2.2-git, but not yet from other databases, sorry.


Hi ! (sorry for my bad english)

it's no possible to convert SQL database amarok 1.4 to SQlite (always for amarok 4.1) and import to amarok 2.x ?


regards
jaja
--------
abit Fatal1ty FP-IN9 SLI/Intel Core 2 Quad Q6600/6041 Mo DDR2/2 Asus silent 8600 Gt 512Mo & ACER Aspire 5612 WLMI : kubuntu Maverick Meerkat 11.04 (32 bits) & KDE SC 4.7 - amarok 2.4.1 - kmail2
nandelbosc
Registered Member
Posts
25
Karma
0
OS
it's no possible to convert SQL database amarok 1.4 to SQlite (always for amarok 4.1) and import to amarok 2.x ?


If I understand JanGerrit correctly, it's possible using amarok 2.1.1 or 2.2
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
nandelbosc wrote:
it's no possible to convert SQL database amarok 1.4 to SQlite (always for amarok 4.1) and import to amarok 2.x ?


If I understand JanGerrit correctly, it's possible using amarok 2.1.1 or 2.2


Well, no, you didn't understand correctly (and mix up different things), please see my previous post.


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
jajaX wrote:it's no possible to convert SQL database amarok 1.4 to SQlite (always for amarok 4.1) and import to amarok 2.x ?


No, not as far as I know, there only is an import wizard from 1.4 SQLite to 2.x MySQL embedded for now, I don't remember a database conversion tool in 1.4.


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 ...
gjulian
Registered Member
Posts
4
Karma
0
OS
There's an unsupported way in the Amarok wiki to convert MySQL to SQLite.

http://amarok.kde.org/wiki/MySQL_HowTo

But, I tried this, and Amarok didn't import anything. It doesn't imports anything no matter the format.
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
gjulian wrote:There's an unsupported way in the Amarok wiki to convert MySQL to SQLite.

http://amarok.kde.org/wiki/MySQL_HowTo

But, I tried this, and Amarok didn't import anything. It doesn't imports anything no matter the format.

So you now have a collection.db?
If so, start a scan without importing anything.
After the scan finished, import the collection.db
But be sure to build the collection first.

m0nk
gjulian
Registered Member
Posts
4
Karma
0
OS
Dieter Schroeder wrote:So you now have a collection.db?
If so, start a scan without importing anything.
After the scan finished, import the collection.db
But be sure to build the collection first.

m0nk


I tried to do that. Also tried with a fresh installation of Amarok 2 (moving the amarok directory in home/.kde)

Nothing worked.
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Okay step by step:
To clearify it: Importing means import of your statistics, not of your collection.
So you need to have a collection before importing something.
OK:
You've dumped your old MySQL database, created a SQLite database (name doesn't matter, but let's call it collection.db) with the schema mentioned in the wiki?
You can access the SQLite database with
Code: Select all
sqlite3 collection.db
?
On the prompt type
Code: Select all
.tables

Are there tables in your db?
type
Code: Select all
select * from statistics;
to see if there are entries
Any entries?
If not, there's nothing to import. If yes, fine.
Start amarok-->open the settings tab-->collection/import collection(btw. unlucky name, should be import statistics)-->point it to your new collection.db-->ok
Now cross fingers and after a while A2 should start importing your stats from Amarok 1.4.
Btw. In 2.2 you can import from all three databases used by Amarok 1.4.x but I haven't tested it.

Good luck

m0nk


If men could get pregnant, abortion would be a sacrament.
gjulian
Registered Member
Posts
4
Karma
0
OS
Thanks for your help, it worked fine. :)


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]