SyntaxFix
Write A Post
Hire A Developer
Questions
it's very simple. this is work for me.
export MYSQL_PWD=password; mysql --user=username -e "statement"
MYSQL_PWD is one of environment variables from mysql. it's default password when connecting to mysqld.
MYSQL_PWD