Bug #35552 Allowing --defaults-extra-file in option file
Description:
A bit nitpicking maybe, but currently mysqld_safe starts mysqld with all the options defined under [mysqld] as command line arguments. This is mostly making the `ps` output unreadable. Doing `ps auw` might show options trimmed, and `ps auwww` might show a 10 line output on the terminal (useless in the end).
How to repeat:
shell> ps ax
..
29564 ? S 0:00 /bin/sh ./bin/mysqld_safe --defaults-file=/etc/mysql/my.cnf
29611 ? S 0:03 /usr/local/mysql-5.1.18-beta-linux-x86_64-glibc23/bin/mysqld --defaults-file=/etc/mysql/my.cnf --basedir=/usr/local/mysql-5.1.18-beta-li
..
Starting mysqld without mysqld_safe makes it look much nicer:
shell> ps ax
..
534 pts/1 Sl 0:00 ./mysqld --defaults-file=/etc/mysql/my.cnf
..
Suggested fix:
Could change the mysqld_safe or how it starts up the mysqld, so writing your own.
But maybe it's also cool to have --defaults-extra-file option available in the option file?
So, doing for example the following:
[mysqld]
defaults_extra_file = /etc/mysql/real_my.cnf
and mysqld_safe will have to pass only that 1 option to the mysqld process.
!include is not doing the trick btw.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.