简体   繁体   中英

MySQL Dump Not Working

every time that I issue the following command "mysqldump -uroot -ppassword database > database.sql" I get the following 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 near". Please help me.

Here is more info if it helps. I'm using a macbook running on Mavericks and I'm using MAMP PRO.

Does your database.sql has an error on some parts of the queries? Did you try to export it in any database softwares like phpMyAdmin, MySQL browser, Workbench? Does your database has many transactions or data? Please try also mysql -u root -p database > database.sql . Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM