Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 24
    This is insecure because any user could view the password - either directly via /proc/$pid/cmdline or via the ps command. It's true that mysql overwrites the password in argv during startup but there is always a time window where another user could observe the password. Also, on some systems the argv overwriting might not work. Commented Jul 14, 2019 at 14:49
  • Thanks for the hint that there must not be any blank space after the option letter. Saved my day. Commented Oct 7, 2020 at 8:11
  • 11
    Of course this is insecure, but most people are doing something like this in a build process that will be deleted shortly afterwards... Commented Jun 29, 2021 at 22:41
  • 1
    List of running processes might be captured by machine monitoring tools and appear then in log files. A short running process is a bad excuse. Commented Sep 23, 2022 at 8:55
  • 1
    Just be a 'real person' and enter the password when prompted rather than sharing it with anyone, including your mother. Commented Mar 9, 2024 at 17:09