摘要: #!/bin/bash USER='root' PASS='123' mysql -u $USER -p$PASS <<EOF 2> /dev/null create database test1; EOF [ $? -eq 0 ] && echo "The database Created test1" || echo "The database test1 is already exist" mysql -u $USE test1 <<EOF 2> /dev/null 阅读全文
posted @ 2012-09-10 21:03 枯木-Linux 阅读(331) 评论(0) 推荐(0) 编辑