军哥你好,建完站后,运行备份脚本出错
for db in `/usr/local/mysql/bin/mysql -u$MYSQL_USER -p$MYSQL_PASS -B -N -e 'SHOW DATABASES' | xargs`; do{
if (${db}!=('performance_schema'||'mysql'||'information_schema'||'phpmyadmin'))
{
/usr/local/mysql/bin/mysqldump -u$MYSQL_USER -p$MYSQL_PASS ${db} | gzip -9 - > ${db}.sql.gz;
}
}
错误提示IF语句那一行php Syntax error: word unexpected (expecting ")") 多了一个半括号 真心谢谢了,解决了。
页:
[1]