mysqldump -uhigh_tv -phigh_tv -hdb199 -P3300 high_tv films > /data/webroot/high_tv.films.120711.sql
mysqldump: Got error: 1044: Access denied for user 'high_tv'@'192.168.1.%' to database 'high_tv' when doing LOCK TABLES
意思大概是拒绝high_tv用户访问,因为tables 被lock,但是可以用来正常的登陆。。。
所以需要一个命令来解除锁定
--skip-lock-tables
mysqldump -uhigh_tv -phigh_tv -hdb199 -P3300 --skip-lock-tables high_tv films > /data/webroot/high_tv.films.120711.sql