mysql:./mysql -uroot -p'123456789' 还可以使用 shell 中的read函数 让执行者输入密码后在执行mysql read -p "Enter DB PWD: " echo “mysql -uroot -p'$REPLY'."
使用expect工具可以实现交互