MySQL 命令行记住密码

In Fish shell, you could do this:

mysql dbname -u root -p$MYSQL_DB -h host.at.somewhere

While export the password from ~/.config/fish/config.fish.

set -x MYSQL_PASSWORD mypassword