Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792741 - kde-apps/akonadi-20.12.3: manual post installation MySQL upgrade instructions are potentially wrong
Summary: kde-apps/akonadi-20.12.3: manual post installation MySQL upgrade instructions...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-29 07:45 UTC by Theo Baumgartner
Modified: 2021-05-30 03:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Theo Baumgartner 2021-05-29 07:45:51 UTC
I went through the post installation instructions and the following command didn't worked for me:

mysql_upgrade -S /run/user/$(id -u)/akonadi/default/mysql.socket --defaults-file=~/.local/share/akonadi/mysql.conf

it gave me the error:
mysql_upgrade: unknown variable 'defaults-file=~/.local/share/akonadi/mysql.conf'

According to "mysql_upgrade --help" the --defaults-file option is "specified before remaining options"

So, changing the command to:
mysql_upgrade --defaults-file=~/.local/share/akonadi/mysql.conf -S /run/user/$(id -u)/akonadi/default/mysql.socket

gave me this:
Version check failed. Got the following error when calling the 'mysql' command line client
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/user/1000/akonadi/default/mysql.socket' (2)
FATAL ERROR: Upgrade failed

When checking where mysql.socket is I found out that it's in the path /run/user/1000/akonadi/

So, doing:
mysql_upgrade --defaults-file=~/.local/share/akonadi/mysql.conf -S /run/user/$(id -u)/akonadi/mysql.socket

Actually upgraded the DB successfully.

Reproducible: Always

Steps to Reproduce:
1. See Description
Actual Results:  
Akonadi MySQL DB doesn't get (manually) upgraded due to wrong instructions.

Expected Results:  
Akonadi MySQL DB should be upgraded