if [ $pass = "123456" ] ; then mysql -u root -p$pass "create database newdb"; use newdb; CREAT TABLE user ( name char (30) , lname char (40) );
echo "creat table succesful" fi
当我运行它时,它输出 start 然后说语法错误:
“(”意外(期待“fi”)
我该如何解决这个问题?
if [ $pass = "123456" ] ; then mysql -u root -p$pass "create database newdb"; use newdb; CREAT TABLE user ( name char (30) , lname char (40) );
echo "creat table succesful" fi
当我运行它时,它输出 start 然后说语法错误:
“(”意外(期待“fi”)
我该如何解决这个问题?