所以我正在尝试创建我的第一个Linux脚本,它只是设置一个MySQL用户,我试图用一个脚本来完成这一切,但是我似乎找不到如何从脚本中发送MySQL命令。这就是我现在所拥有的。read -p "Please enter your desired MySQL username: " USERread -p "Pleaseenter your desired MySQL password: &qu
我正在执行在ubuntu中导入sql转储的查询。mysql -u username - p passsword databasenme < var/www/sql.sql;
error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use n