How to auto login in MySQL from a shell script?
Alternative ways to write these options. You can write mysql -u “$MYSQL_ROOT” -p”$MYSQL_PASS” -e “SHOW DATABASES” If [password is] given, there must be no space between –password= or -p and the password following it. If no password option is specified, the default is to send no password. to pass empty strings as separate arguments. Your … Read more