mysqldump Got error: 1449
2015-06-07 20:22
495 查看
在使用语句:
mysqldump -uroot -ppwd123 testdb > dump0607.sql
备份mysql数据库时出现错误:
Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES.
需要给root用户添加一个对全部host都可以访问的权限。
具体操作:
先登录mysql
mysql -uroot -ppwd123;
mysql> grant all privileges on *.* to root@"%"identified by "pwd123"
mysql> flush privileges;
再次执行备份语句就能成功备份了。
mysqldump -uroot -ppwd123 testdb > dump0607.sql
备份mysql数据库时出现错误:
Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES.
需要给root用户添加一个对全部host都可以访问的权限。
具体操作:
先登录mysql
mysql -uroot -ppwd123;
mysql> grant all privileges on *.* to root@"%"identified by "pwd123"
mysql> flush privileges;
再次执行备份语句就能成功备份了。
相关文章推荐
- MySQL中的integer 数据类型
- mysql中int、bigint、smallint 和 tinyint的区别与长度
- mysql load data 导出、导入 csv
- source命令执行SQL脚本文件
- linux下mysql添加用户
- mysql procedure
- mysql触发器
- MySQL 备份和恢复策略
- mac下安装mysql(转载)
- mysql 修改编码 Linux/Mac/Unix/通用(杜绝修改后无法启动的情况!)
- MySQL数据的导出、导入(mysql内部命令:mysqldump、mysql)
- mysql数据行转列
- Linux下修改MySQL编码的方法
- MySQL Server 日志
- MySQL 安全事宜
- MySQL 备份与恢复
- MySQL 优化
- MySQL 数据类型
- Facebook's New Real-time Messaging System: HBase to Store 135+ Billion Messages a Month