[MDEV-18563] mysql_install_db uses wrong path for resolveip Created: 2019-02-12  Updated: 2019-02-14  Resolved: 2019-02-14

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.2.22
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Paul Whitaker Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

CentOS Linux release 7.6.1810 (Core)


Issue Links:
Duplicate
is duplicated by MDEV-18526 mysql_install_db fails because basedi... Closed

 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



 Comments   
Comment by Elena Stepanova [ 2019-02-14 ]

Thanks for the report.
It appears to be the same problem as MDEV-18526. Let's track it there.

Generated at Thu Feb 08 08:45:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.