Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658632 - dev-db/mariadb-10.1.33-r1 fails to config/start with default configuration: [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'
Summary: dev-db/mariadb-10.1.33-r1 fails to config/start with default configuration: [...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-21 06:46 UTC by Tomáš Mózes
Modified: 2018-06-22 14:43 UTC (History)
0 users

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 Tomáš Mózes 2018-06-21 06:46:11 UTC
The default configuration comes with lc_messages_dir = /usr/share/mysql, but now the files are in /usr/share/mariadb.

# emerge --config mariadb

Configuring pkg...

 * Trying to get password for mysql 'root' user from 'mysql' section ...
 * Found password in 'mysql' section!
 * Creating the mysql database and setting proper permissions on it ...
 * Command: /usr/share/mariadb/scripts/mysql_install_db --basedir=/usr --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --datadir=///var/lib/mysql --tmpdir=///tmp/
 * Starting mysqld ...
 * Command //usr/sbin/mysqld             --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --user=mysql           --log-warnings=0                --basedir=//usr                 --datadir=///var/lib/mysql              --max_allowed_packet=8M                 --net_buffer_length=16K            --socket=//var/run/mysqld/mysqld624.sock                --pid-file=//var/run/mysqld/mysqld15317.pid
 *              --tmpdir=///tmp/
.2018-06-21  6:41:56 139820569085824 [Note] //usr/sbin/mysqld (mysqld 10.1.33-MariaDB) starting as process 27121 ...
2018-06-21  6:41:56 139820569085824 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'
2018-06-21  6:41:56 139820569085824 [ERROR] Aborting
Comment 1 Larry the Git Cow gentoo-dev 2018-06-21 12:39:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5a69bdef5917ff3235f962dbf624d31b3a4d911

commit d5a69bdef5917ff3235f962dbf624d31b3a4d911
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-06-21 12:39:14 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-06-21 12:39:14 +0000

    dev-db/mariadb: Fix default location of charset files
    
    Closes: https://bugs.gentoo.org/658632
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-db/mariadb/files/my.cnf-5.6-r1                 | 142 +++++++++++++++++++++
 ...10.0.35-r1.ebuild => mariadb-10.0.35-r2.ebuild} |   6 +-
 dev-db/mariadb/mariadb-10.1.34.ebuild              |   2 +-
 3 files changed, 146 insertions(+), 4 deletions(-)
Comment 2 Tomáš Mózes 2018-06-21 14:49:21 UTC
Thank you
Comment 3 Tomáš Mózes 2018-06-22 14:43:36 UTC
Are these files in correct place?

/etc/mysql/init.d/mysql
/etc/mysql/logrotate.d/mysql