summaryrefslogtreecommitdiff
path: root/scripts/mysqld_safe.sh
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.3 into 10.4Marko Mäkelä2022-03-071-0/+1
|\
| * Merge 10.2 into 10.3Marko Mäkelä2022-03-041-0/+1
| |\
| | * MMDEV-27823 mariadb-install-db --group failsMonty2022-03-011-0/+1
| | | | | | | | | | | | | | | | | | Fixed by not sending --group option to the server (for now) Reviwer: Sergei Golubchik
* | | Merge branch '10.3' into 10.4Oleksandr Byelkin2022-01-301-1/+9
|\ \ \ | |/ /
| * | Merge branch '10.2' into 10.3mariadb-10.3.33Oleksandr Byelkin2022-01-291-1/+9
| |\ \ | | |/
| | * MDEV-27477 Remaining SUSE patches for 10.2+Monty2022-01-271-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch let's you specify not only user to use but also group that MariaDB should use. Original patch: https://github.com/openSUSE/mysql-packaging/blob/master/patches/mysql-patches/mariadb-10.2.3-group.patch Author: Kristyna Streitova Reviewer: monty@mariadb.org
* | | Merge branch '10.3' into 10.4Oleksandr Byelkin2021-07-311-1/+3
|\ \ \ | |/ /
| * | Merge branch '10.2' into 10.3Sergei Golubchik2021-07-211-1/+3
| |\ \ | | |/
| | * fix mysqld_safe --helpSergei Golubchik2021-07-191-1/+3
| | | | | | | | | | | | | | | put defaults* options first (and together). list --defaults-group-suffix too
* | | Merge branch '10.3' into 10.4bb-10.4-MDEV-23468Oleksandr Byelkin2020-12-251-6/+4
|\ \ \ | |/ /
| * | Merge branch '10.2' into 10.3Oleksandr Byelkin2020-12-231-6/+4
| |\ \ | | |/
| | * MDEV-21367: mysqld_safe log don't log to err.logAnel Husakovic2020-12-071-6/+4
| | | | | | | | | | | | | | | | | | | | | Introduced with 6b7918d524d5 in `10.2` just check for helper and handle it if exist. Reviewed by: cvicentiu@mariadb.org
* | | Merge 10.3 into 10.4Marko Mäkelä2020-11-121-1/+2
|\ \ \ | |/ /
| * | MDEV-24130: Cannot launch mariadbd via mysqld_safeAnel Husakovic2020-11-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | - Patch 95bb3cb886cb64be3ee5ace660b used `my_which` function in `10.2` - Based on patch `355ee6877bec` from 10.3+ `command -v` is used instead of `my_which` so we are changing in this patch also - `ldconfig` is usually found in `/sbin` so make sure it is added in `$PATH` variable
* | | Merge 10.3 into 10.4Marko Mäkelä2020-10-221-35/+19
|\ \ \ | |/ /
| * | Merge 10.2 into 10.3Marko Mäkelä2020-10-221-35/+19
| |\ \ | | |/
| | * MDEV-16676 Using malloc-lib=jemalloc in MariaDB 10.2 causes non-critical ↵Anel Husakovic2020-10-171-35/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | error about missing mysql_config on startup - This commit is based on patch 84fe9720a4d2483ff67b6a and suggestion of Jean Weisbuch to use `ldconfig -p` - Format of ldconfig output: "libjemalloc.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libjemalloc.so.1" ``` $ ./scripts/mysqld_safe 201013 13:36:50 mysqld_safe Adding '/usr/lib/x86_64-linux-gnu/libjemalloc.so.1' to LD_PRELOAD for mysqld 201013 13:36:50 mysqld_safe Logging to '/home/anel/builds/data-10.5/mysqld_safe_anel.err'. 201013 13:36:50 mysqld_safe Starting mysqld daemon with databases from /home/anel/builds/data-10.5 ``` Reviewed by: Daniel Black, Faustin Lammler
* | | Merge 10.3 into 10.4Marko Mäkelä2020-08-211-16/+4
|\ \ \ | |/ /
| * | Merge 10.2 into 10.3Marko Mäkelä2020-08-211-16/+4
| |\ \ | | |/
| | * Merge 10.1 into 10.2Marko Mäkelä2020-08-211-16/+4
| | |\
| | | * Revert "MDEV-21039: Server fails to start with unknown mysqld_safe options"Jan Lindström2020-08-211-16/+4
| | | | | | | | | | | | | | | | This reverts commit 5796021174fd7096267003b999e02d6cf98f555b.
* | | | Merge 10.3 into 10.4Marko Mäkelä2020-08-201-4/+16
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2020-08-201-4/+16
| |\ \ \ | | |/ /
| | * | Merge 10.1 into 10.2Marko Mäkelä2020-08-201-4/+16
| | |\ \ | | | |/
| | | * MDEV-21039: Server fails to start with unknown mysqld_safe optionsJulius Goryavsky2020-08-181-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding any unknown option to the "[mysqld_safe]" section makes mysqld impossible to start with mysqld_multi. For example, after adding the unknown option "numa_interleave" to the "[mysqld_safe]" section, mysqld_multi exits with the following diagnostics: [ERROR] /usr/local/mysql/bin/mysqld: unknown option '--numa_interleave' To get rid of this behavior, this patch by default adds the "--loose-" prefix to all unknown (for mysqld_safe) options. This behavior can be enabled explicitly with the --ignore-unknown option and disabled with the --no-ignore-unknown option.
* | | | Merge 10.3 into 10.4Marko Mäkelä2020-04-221-1/+8
|\ \ \ \ | |/ / /
| * | | Merge 10.2 into 10.3Marko Mäkelä2020-04-221-1/+8
| |\ \ \ | | |/ /
| | * | MDEV-22159: Don't redirect as root to a tmp file not owned by rootOtto Kekäläinen2020-04-221-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Also add a check for tmp file being empty and bail out with a clear error message in such a case, as mysqld_safe prevents normal stderr from being displayed anywhere and would fail silently on this.
* | | | Merge 10.3 into 10.4Marko Mäkelä2019-09-251-1/+4
|\ \ \ \ | |/ / /
| * | | Merge remote-tracking branch 'origin/10.2' into 10.3Alexander Barkov2019-09-241-1/+4
| |\ \ \ | | |/ /
| | * | Merge remote-tracking branch 'origin/10.1' into 10.2Alexander Barkov2019-09-241-1/+4
| | |\ \ | | | |/
| | | * Merge remote-tracking branch 'origin/5.5' into 10.1Alexander Barkov2019-09-241-1/+4
| | | |\
| | | | * Update mysqld_safe.sh - introduce defaults-group-suffix handlingrantal2019-09-211-1/+4
| | | | | | | | | | | | | | | | | | | | "--defaults-group-suffix" must be be given as the first argument on the command-line of mysqld
* | | | | Merge 10.3 into 10.4Marko Mäkelä2019-09-231-1/+7
|\ \ \ \ \ | |/ / / / | | | | | | | | | | Disable MDEV-20576 assertions until MDEV-20595 has been fixed.
| * | | | Merge 10.2 into 10.3Marko Mäkelä2019-09-231-1/+7
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.1 into 10.2Marko Mäkelä2019-09-231-1/+7
| | |\ \ \ | | | |/ /
| | | * | MDEV-19211 Fix mysqld_safe --dry-runVicențiu Ciorbaru2019-09-211-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysqld_safe --dry-run needs to either call exit or return, depending if it is being sourced or not, otherise return can lead to the error: return: can only `return' from a function or sourced script The original fix suggestion was proposed by FaramosCZ <mschorm@centrum.cz>
* | | | | Merge 10.3 into 10.4Marko Mäkelä2019-07-251-2/+2
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.2 into 10.3Eugene Kosov2019-07-161-2/+2
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.1 into 10.2Eugene Kosov2019-07-091-2/+2
| | |\ \ \ | | | |/ /
| | | * | MDEV-19726 MariaDB server or backup RPM install assumes mysql user existsSergei Golubchik2019-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | mysqld_safe shouldn't try to mkdir or chown if --dry-run
| | | * | fix incorrect shell usageSergei Golubchik2019-07-041-1/+1
| | | | |
* | | | | Fixed that mariadb-# binaries reads their corresponding entry from my.cnfMonty2019-07-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added mariadb-# to load_default_groups to all mariadb-# scripts and mariadb-binaries. - Added mariadbd and mariadbd-"version" to load_default_groups for the mysqld/mariadb server - Added mariadb-client to load_default_groups for the mysql/mariadb client Other things - Ignored mysql-test/lib/My/SafeProcess/wsrep_check_version - mysql_install_db will now automatically detect if run from srcdir
* | | | | Galera4Brave Galera Crew2019-01-231-1/+10
|/ / / /
* | | | MDEV-16318: mysqld_safe - partial revert on 64094e1Daniel Black2018-06-051-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert part of 64094e1 because mysqld_safe isn't just used for Debian. As such references to specific packaging files like /etc/mysql/debian.cnf shouldn't have passed a review. There's also no history of why 64094e1 was needed based on the history of debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch Other distos have survived without mysqld_safe handling signals.
* | | | mysqld_safe: use sh not bashDaniel Black2018-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c902d5a4ded2a492eb47379910111717dbded2d3 changed this to bash. This isn't approprate as mysqld_safe is used by FreeBSD where there is no bash by default. The original reason to use bash seems related to MDEV-3279 which was a dash bug fixed in 2009 - https://git.kernel.org/pub/scm/utils/dash/dash.git/commit/?id=3800d4934391b144fd261a7957aea72ced7d47ea Working around 9 year old fixed bugs shouldn't be done here.
* | | | Apply debian/patches/61_replace_dash_with_bash_mbug675185.dpatchKristien Nielsen2018-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have carried along this patch as a patch inside our sources since 2012 (commit cfd4fcb0bc3d). The validity of this has thus been vetted in production for years and the review done now did not find otherwise. A race in dash causes mysqld_safe to occasionally loop infinitely. Fix by using bash instead. https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/675185 As this is the last patch, we can also clean away usage of dpatch.
* | | | Apply debian/patches/38_scripts__mysqld_safe.sh__signals.dpatchChristian Hammers2018-05-281-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have carried along this patch as a patch inside our sources since 2012 (commit cfd4fcb0bc3d469dfca74dae30d17250d65fdd91). This same patch has been used also in MySQL packaging at Oracle and in downstream Debian.org packages for both MySQL and MariaDB. The validity of this has thus been vetted in production for years and the review done now did not find otherwise. Code contributed to Oracle with http://forge.mysql.com/wiki/Sun_Contributor_Agreement Reported as http://bugs.mysql.com/bug.php?id=31361
* | | | MDEV-13946 Server RPMs have dependency on "which"Sergei Golubchik2018-02-121-35/+6
|/ / / | | | | | | | | | | | | cleanup. use "command -v" instead of "which" simplify some checks.
* | | Merge remote-tracking branch 'origin/10.1' into 10.2Vicențiu Ciorbaru2017-12-221-2/+2
|\ \ \ | |/ /