# Mysql start-up queries

**URL:** <https://forums.percona.com/t/mysql-start-up-queries/10780>\
**Category:** Other MySQL® Questions\
**Created:** [June 8, 2021, 7:02am UTC](https://forums.percona.com/t/mysql-start-up-queries/10780 "2021-06-08T07:02:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![preethi\_subbu](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/preethi_subbu/32/3204_2.png) [@preethi\_subbu](https://forums.percona.com/u/preethi_subbu)\
**Post date:** [June 8, 2021, 7:02am UTC](https://forums.percona.com/t/mysql-start-up-queries/10780/1 "2021-06-08T07:02:03Z")

</div>

Hi,  
I would like to know whether is there any case (may be during crash) when MySQL internally starts the instance directly by issuing mysqld command and not mysqld\_safe ? Planning to write some logic for passing parameters to customized plugin via mysqld\_safe script.

Could be of great help if someone could share insights on this.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [June 8, 2021, 12:16pm UTC](https://forums.percona.com/t/mysql-start-up-queries/10780/2 "2021-06-08T12:16:02Z")

</div>

If you can provide these parameters on command-line, why can’t you simply add them to my.cnf like all other plugins?

---

<div class="post-metadata">

**Author:** ![preethi\_subbu](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/preethi_subbu/32/3204_2.png) [@preethi\_subbu](https://forums.percona.com/u/preethi_subbu)\
**Post date:** [June 8, 2021, 3:39pm UTC](https://forums.percona.com/t/mysql-start-up-queries/10780/3 "2021-06-08T15:39:39Z")

</div>

Thanks for the reply. Storing it in my.cnf (option file) won’t be advisable here as I am in need of secret/password during start-up for obtaining another layer of obfuscation.

In case of command-line argument, secrets would be shared only at start-up & not available locally in a running server.

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [June 8, 2021, 4:14pm UTC](https://forums.percona.com/t/mysql-start-up-queries/10780/4 "2021-06-08T16:14:28Z")

</div>

MySQL as a secure key vault plugin that you could use as well.

mysqld\_safe is no longer in use in modern MySQL as systemd handles most aspects of what mysqld\_safe used to do. There is a mysql-systemd (or similar) script that is launched.
