[MDEV-19227] mysql_plugin doesn't run bootstrap from source Created: 2019-04-10  Updated: 2021-09-07  Resolved: 2021-09-07

Status: Closed
Project: MariaDB Server
Component/s: Configuration, Scripts & Clients
Affects Version/s: None
Fix Version/s: 10.2.41, 10.3.32, 10.4.22, 10.5.13, 10.6.5, 10.7.0

Type: Bug Priority: Minor
Reporter: Anel Husakovic Assignee: Anel Husakovic
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-19015 mysql_plugin doesn't read all server ... Closed

 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.



 Comments   
Comment by Anel Husakovic [ 2021-09-07 ]

Pushed to 10.2 with commit 630d722902c97f0

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