Registered Member
|
Hello,
I followed the instructions at https://community.kde.org/Amarok/Develo ... L_Embedded in order to log in to the Amarok database, but I hit an error. I stop my mysqld server and execute
in ~/.kde4/share/apps/amarok, but I get the following error message:
Now, I'm not using MySQL 5.1.30, as recommended in that page. I have 5.7.18 installed. I would prefer not to install an older version for the little housekeeping I want to do. Has anyone had any luck using a more recent mysql to connect to the embedded DB? Thanks. |
Registered Member
|
Seems that the my.cnf file doesn't exist. Are you actually using Amarok with an embedded database, or did you configure it to use an external server? I.e. what does this command say:
If you use an external server ("UseServer=true"), you can just connect to it and access the Amarok database like you would with any other database... |
Registered Member
|
my.cnf *does* exist, is in the right place and is readable.
Looks okay to me. The only possibly odd thing is that "[embedded]" looks like an opening tag, but there is no close tag. I presume that this is normal, however. I suspect that there's a compatibility problem with newer versions of MySQL, but I'd sure rather not have to install a back version.
I'm not using an external server. Thanks for the help. |
Registered Member
|
Hm, then it might indeed be an incompatibility with newer mysql versions. I cannot tell or check as I'm using mariadb since years (and an external server for Amarok).
Yes, that's how a freshly generated my.cnf looks here too. And "INI" style config files do not have closing tags. You might try to just omit the --defaults-file=xxx parameter though I suppose, the other arguments should tell mysql the proper parameters for the embedded database anyway, as I see it. |
Registered Member
|
Thanks for the suggestion, but it seems that mysqld exits immediately after starting without the defaults-file option. There is no daemon running immediately after execution. I may have to install an old mysql to get into the database. You can bet I'll migrate it to my main mysql server at that time. |
Registered Member
|
I haven't noticed it before, but maybe try to remove that line from the my.cnf:
I don't have that in the freshly generated one here, and I don't even have a mysqle folder in /usr/share/kde4/apps/amarok/ on my system (there's no mysqle folder at all in the amarok package). No idea if that can be the problem though. |
Registered Member
|
PS, just to rule out the obvious:
You did cd to the directory ~/.kde/share/apps/amarok/ before you ran the mysqld line, right? I.e.:
If not it's clear that the my.cnf cannot be found because that command line expects it to be in the current directory. (and yes, I do get exactly the same error message as you posted if I don't cd to the directory first) |
Registered Member
|
It's never a bad idea to rule out the obvious, but yes, I'm in the right directory. |
Registered Member
|
I appreciate the suggestion, but it doesn't seem to be the issue. |
Registered users: Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot], Yahoo [Bot]