Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-18563

mysql_install_db uses wrong path for resolveip

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.2.22
    • N/A
    • Packaging
    • 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

          Activity

            People

              Unassigned Unassigned
              prwhitaker Paul Whitaker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.