使用gunzip恢复备份文件报错
梦百川 2013-10-15 08:04:48 命令:gunzip -c a.sql.gz | mysql -u user -p databasename
a.sql中是创建表的语句,单独执行无问题。
执行上面命令后,显示错误:
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'a.sql' at line 1
求高手指教。谢谢。