Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.2.22
-
None
-
CentOS Linux release 7.6.1810 (Core)
Description
mysql_install_db appears to generate the wrong path for `resolveip` in version 10.2.22 (note the error message refers to `/usr/sbin` whereas the binary is installed in `/usr/bin`):
[root@paul8256-1 ~]# rpm -q MariaDB-server
|
MariaDB-server-10.2.22-1.el7.centos.x86_64
|
[root@paul8256-1 ~]# rpm -ql MariaDB-server | grep 'bin/resolveip'
|
/usr/bin/resolveip
|
[root@paul8256-1 ~]# mysql_install_db --datadir=/var/lib/myql --user=mysql
|
Neither host 'paul8256-1' nor 'localhost' could be looked up with
|
'/usr/sbin/resolveip'
|
Please configure the 'hostname' command to return a correct
|
hostname.
|
If you want to solve this at a later stage, restart this script
|
with the --force option
|
|
The latest information about mysql_install_db is available at
|
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
|
The previous version succeeds:
[root@paul8256-1 ~]# rpm -q MariaDB-server
|
MariaDB-server-10.2.21-1.el7.centos.x86_64
|
[root@paul8256-1 ~]# rpm -ql MariaDB-server | grep 'bin/resolveip'
|
/usr/bin/resolveip
|
[root@paul8256-1 ~]# mysql_install_db --datadir=/var/lib/myql --user=mysql
|
Installing MariaDB/MySQL system tables in '/var/lib/myql' ...
|
OK
|
|
etc
|
Attachments
Issue Links
- is duplicated by
-
MDEV-18526 mysql_install_db fails because basedir is incorrect
- Closed