[MDEV-18526] mysql_install_db fails because basedir is incorrect Created: 2019-02-09 Updated: 2019-02-19 Resolved: 2019-02-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Platform RedHat, Scripts & Clients |
| Affects Version/s: | 10.1.38 |
| Fix Version/s: | 10.2.23, 10.3.13, 10.1.39 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Tim Ruhl | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
CentOS Linux release 7.5.1804 (Core) Linux localhost.localdomain 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
||
| Issue Links: |
|
||||||||
| Description |
|
Since the release of 10.1.38 mysql_install_db fails when called without arguments:
This problem does not occur with 10.1.37. |
| Comments |
| Comment by Elena Stepanova [ 2019-02-09 ] | ||||||||||||
|
Is it a source build or are you using binary packages, and if so, which ones? | ||||||||||||
| Comment by Tim Ruhl [ 2019-02-09 ] | ||||||||||||
|
This is the binary build from the mariadb repository: [root@localhost vagrant]# cat /etc/yum.repos.d/MariaDB.repo [root@localhost vagrant]# rpm -q -f /bin/mysql_install_db | ||||||||||||
| Comment by Martin Häcker [ 2019-02-13 ] | ||||||||||||
|
I'm seeing the same issue
Looks like this is a systematic issue? | ||||||||||||
| Comment by Martin Häcker [ 2019-02-13 ] | ||||||||||||
|
I was able to workaround by adding this to the configuration:
Sadly I can't simply use that as that config file is reused across different machines with different basedirs of the installed MariaDB. | ||||||||||||
| Comment by Martin Häcker [ 2019-02-13 ] | ||||||||||||
|
I've since resorted to add this config via the shell
| ||||||||||||
| Comment by Elena Stepanova [ 2019-02-14 ] | ||||||||||||
|
Thanks for the report. It appears to be a problem specific to configuration created by RPMs, at least on CentOS, but probably not limited to it.
So, additions made by
Luckily, RPM installation happens to work. | ||||||||||||
| Comment by Rick Salevsky [ 2019-02-18 ] | ||||||||||||
|
Same issue happens on openSUSE / SUSE. Any idea if this will this be fixed in the next 10.2.X release? | ||||||||||||
| Comment by Sergei Golubchik [ 2019-02-19 ] | ||||||||||||
|
rsalevsky, yes, that's what the Blocker status means. No new releases (from the Fix Version/s list) until it's fixed. |