备份数据库时出现错误:

mysqldump: Got error: 1016: Can’t open file: ‘./limesurvey/lime_tokens_78643.frm’ (errno: 24) when using LOCK TABLES

加上–lock-tables=false选项即可解决问题,即:

mysqldump -u root -pMyPassword DbName –lock-tables=false > data.sql