mysqldump 1449错误解决办法
2013-10-31 09:27
260 查看
研究mysql主从复制,在数据库导入导出的过程中,主数据据导出导入没问题,但是在从库上导入就报错mysqldump 1449 这个错误,之后网上查找了一下方案,成功解决。
现将操作步骤贴出,以便大家学习交流:
[root@localhost ~]# /opt/mysql/bin/mysqldump --opt xxx_erp > xxx_erp_db03_test01.sql
mysqldump: Got error: 1449: The user specified as a definer ('xxxerp'@'%') does not exist when using LOCK TABLES
解决办法:
mysql>grant all privileges on xxxerp.* to
'xxxerp'@'%' identified by '123456';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
[root@localhost ~]# /opt/mysql/bin/mysqldump --opt xxx_erp > xxx_erp_db03_test01.sql
[root@localhost ~]# ll
total 2320444
-rw-r--r-- 1 root root 2183168822 Oct 29 01:42 xxx_erp_db03_test01.sql
-rw-r--r-- 1 root root 186133946 Aug 16 14:18 all.tar.gz
The end
本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2012-05/61198.htm
现将操作步骤贴出,以便大家学习交流:
[root@localhost ~]# /opt/mysql/bin/mysqldump --opt xxx_erp > xxx_erp_db03_test01.sql
mysqldump: Got error: 1449: The user specified as a definer ('xxxerp'@'%') does not exist when using LOCK TABLES
解决办法:
mysql>grant all privileges on xxxerp.* to
'xxxerp'@'%' identified by '123456';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
[root@localhost ~]# /opt/mysql/bin/mysqldump --opt xxx_erp > xxx_erp_db03_test01.sql
[root@localhost ~]# ll
total 2320444
-rw-r--r-- 1 root root 2183168822 Oct 29 01:42 xxx_erp_db03_test01.sql
-rw-r--r-- 1 root root 186133946 Aug 16 14:18 all.tar.gz
The end
本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2012-05/61198.htm
相关文章推荐
- mysqldump 1449错误解决办法
- mysqldump:unknown option '--no-beep'错误解决办法
- Mysql使用mysqldump备份遇到Errcode: 13错误的解决办法
- [转载]mysqldump:unknown option '--no-beep'错误解决办法
- MSDN 语法错误的解决办法
- 数据库错误823解决办法
- iOS 提交app错误 90096解决办法
- 安装rac遇到的错误解决办法
- 安装SQL Server出现在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke的错误解决办法
- xp加域失败提示错误53找不到网络路径的一种解决办法
- 错误“操作必须使用一个可更新的查询”原因及解决办法
- Workspace in use or cannot be created, choose a different one.--错误解决办法
- Win7 IIS7.5运行ASP时出现500错误的解决办法
- windows下gem install报certificate verify failed错误解决办法或者添加淘宝源镜像失败
- Git使用中出现的错误以及解决办法积累
- 编译用于Linux-arm 的Qt4.8.0 opensource 出现 clock_gettime() 未找的错误解决办法
- MyEclipse导出项目时发生的错误:Resource is out of sync with the file system解决办法
- UE4 The global shader cache file missing 运行错误解决办法
- SVN commit:remains in tree-conflict错误的解决办法
- 安装JDK包时出现 内部错误 2350 的解决办法