[MDEV-12049] mysqld to create recreate it's own system table at startup Created: 2017-02-11  Updated: 2017-02-11

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: VAROQUI Stephane Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

This is over complicated to have extra binary and different method to bootstrap MariaDB
Just a quick example is our install for binary

shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &

It contain to many steps that overlab the job to provide a configuration file
When it comes to scripts/mysql_install_db where is this script in rpm , binary , source , oeach os may complexify any bootstrap solution that would only have to ask the path of the mysqld server to enable first install

This task would be to implement
mariadbd --bootstrap-system --user=mariadb --datadir=/var/lib/mariadb that would
where mariadb is binary and mysqld a symlink to it to keep existing compatibility with the past

--bootstrap-system would create or replace all system tables including detaching and recreating innodb system tables if needed


Generated at Thu Feb 08 07:54:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.