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.

Required fields*

3
  • 6
    must be no blank between -p and your password. Commented May 23, 2015 at 7:10
  • mysql doesn't read the password from stdin, I wasn't able to figure it what it does read it from. Commented Mar 19, 2018 at 0:20
  • 3
    The proper answer is don't put your passwords on the command line where anyone with access to /proc can trivially read them as long as the program is running. That's what a ~/.my.cnf is for, properly chmod'ed to 0600 Commented Jun 16, 2019 at 21:29