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

mysql_plugin doesn't run bootstrap from source

    XMLWordPrintable

Details

    Description

      When working from source there is no way to start mysql_plugin in bootstrap mode.
      Example:

      ./client/mysql_plugin -n -v --basedir=. --datadir=../datadir-10.2 --plugin_dir=./storage/rocksdb/ --plugin_ini=./client/rock.ini rocksdb ENABLE
      #    basedir = ./
      # plugin_dir = ./storage/rocksdb/
      #    datadir = ../datadir-10.2
      # plugin_ini = ./client/rock.ini
      # Found tool 'mysqld' as './sql/mysqld'.
      # Found plugin 'rocksdb' as './storage/rocksdb/ha_rocksdb.so'
      # Enabling rocksdb...
      # Query: REPLACE INTO mysql.plugin VALUES ('rocksdb','ha_rocksdb.so');
       
      # Command: ./sql/mysqld --no-defaults --bootstrap --datadir=../datadir-10.2 --basedir=./ < /tmp/sqlKVZvTM
      2019-04-09 23:58:58 140270533934080 [Note] ./sql/mysqld (mysqld 10.2.24-MariaDB-debug) starting as process 3202 ...
      2019-04-09 23:58:58 140270533934080 [Warning] Could not increase number of max_open_files to more than 1024 (request: 4186)
      2019-04-09 23:58:58 140270533934080 [Warning] Changed limits: max_open_files: 1024  max_connections: 151 (was 151)  table_cache: 421 (was 2000)
      2019-04-09 23:58:58 140270533934080 [ERROR] Can't find messagefile '/home/anel/workspace/10.2/share/errmsg.sys'
      2019-04-09 23:58:58 140270533934080 [ERROR] Aborting
       
      ERROR: Unexpected result from bootstrap. Error code: 256.
      

      Solution:
      It is needed to provide lc-messages-dir=/path/error_messages to the bootstrap.
      It should be read from configuration file as well as from CLI.
      For reference: /scripts/mysql_install_db.sh, as an option opt_mysqld is used lc-messages-dir or lc-messages=en_US.

      Attachments

        Issue Links

          Activity

            People

              anel Anel Husakovic
              anel Anel Husakovic
              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.