# Access Amarok's database

**URL:** <https://discuss.kde.org/t/access-amaroks-database/19403>\
**Category:** Help\
**Tags:** amarok\
**Created:** [July 31, 2024, 12:01am UTC](https://discuss.kde.org/t/access-amaroks-database/19403 "2024-07-31T00:01:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seedsca](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@seedsca](https://discuss.kde.org/u/seedsca)\
**Post date:** [July 31, 2024, 12:01am UTC](https://discuss.kde.org/t/access-amaroks-database/19403/1 "2024-07-31T00:01:18Z")

</div>

Hi all, how would one go about accessing Amarok’s (3.0.1) internal database? I’m trying to pull some data from it but would like to avoid configuring the “external” MySQL database.

---

<div class="post-metadata">

**Author:** ![mazoon](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/mazoon/32/8950_2.png) [@mazoon](https://discuss.kde.org/u/mazoon)\
**Post date:** [July 31, 2024, 1:15pm UTC](https://discuss.kde.org/t/access-amaroks-database/19403/2 "2024-07-31T13:15:40Z")

</div>

An interesting question. I haven’t tried myself, but I think the directions at [Amarok/Community/MySQL - KDE Community Wiki](https://community.kde.org/Amarok/Community/MySQL#Migrating_from_MySQL_Embedded_to_MySQL_Server) might still be valid: following them up to the `mysqldump -S sock amarok > amarok.mysql` point should probably get you a normal db dump (or alternatively, I think one can connect to the manually started `mysqld`/`mariadbd` with normal `mysql`/`mariadb` methods from console instead of running the `mysqldump`)

EDIT: Tested, seems to work if one leaves the `--defaults-file=´pwd´/my.cnf` part out & sets proper mysql permissions up somehow.

---

<div class="post-metadata">

**Author:** ![seedsca](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@seedsca](https://discuss.kde.org/u/seedsca)\
**Post date:** [August 1, 2024, 2:22am UTC](https://discuss.kde.org/t/access-amaroks-database/19403/3 "2024-08-01T02:22:14Z")

</div>

Thanks! In my case the directory was `~/.local/share/amarok` but theconnection worked just as hoped!

This is the command I used:  
mysqld --datadir=`pwd`/mysqle --socket=`pwd`/sock --skip-grant-tables

I did have to stop mariadb first… Even though this is resolved, would it be possible to connect to the amarok db without stopping the existing mariadb service?

Either was, thanks!

---

<div class="post-metadata">

**Author:** ![mazoon](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/mazoon/32/8950_2.png) [@mazoon](https://discuss.kde.org/u/mazoon)\
**Post date:** [August 1, 2024, 5:13am UTC](https://discuss.kde.org/t/access-amaroks-database/19403/4 "2024-08-01T05:13:17Z")

</div>

Not a mariadb expert, but I think one could do it if setting manually some custom ports & pid files for the another db server instance
