命令:
mysql -uroot -p123456 <<EOF
use test;
select * from tablename limit 10;
EOF
其中:
-uroot,root爲用戶名
-p123456,123456爲密碼
注意與mysql命令行登陸命令區別:
mysql -u root -p test
123456
其中:
root ,用戶名
test ,爲數據庫名稱
123456爲密碼(需手工輸入)
命令:
mysql -uroot -p123456 <<EOF
use test;
select * from tablename limit 10;
EOF
其中:
-uroot,root爲用戶名
-p123456,123456爲密碼
注意與mysql命令行登陸命令區別:
mysql -u root -p test
123456
其中:
root ,用戶名
test ,爲數據庫名稱
123456爲密碼(需手工輸入)