免密登陆mysql服务器 2015 年6 月1 日 Enter the user name and password in a shell script in the following way will make the login process easier. 1 mysql -h $host -u$user -p$pass $db