mysqldump: Got error: 1449: The user specified as a definer ('user'@'%') does not exist when using LOCK TABLES

报错:
一个库用mysqldump -u -p --opt --force -e --max_allowed_packet= --net_buffer_length= --databases备份时报错如下:mysqldump: Got error: 1449: The user specified as a definer (‘user‘@‘%‘) does not exist when using LOCK TABLES
解决:在网上查找别人的解决方法,大意是说数据库是从别的实例复制过来的,而复制时记录了原实例的用户,但是目前实例上并没有该用户,所以导致报错,我这个库确实是从别的实例复制过来的,网上的解决方法比较复杂,后面搜到一个英文网站的解决方法https://help.directadmin.com/item.php?id=453,在备份时加上--single-transaction参数即可。

mysqldump: Got error: 1449: The user specified as a definer ('user'@'%') does not exist when using LOCK TABLES

原文地址:https://www.cnblogs.com/godfather007/p/10352364.html

时间: 2024-10-14 18:33:48

mysqldump: Got error: 1449: The user specified as a definer ('user'@'%') does not exist when using LOCK TABLES的相关文章

mysqldump: Got error: 1449

做mysqldump时出现如下问题 mysqldump: Got error: 1449: The user specified as a definer ('jyk'@'%') does not exist when using LOCK TABLES 创建用户 GRANT ALL PRIVILEGES ON *.* TO 'jyk'@'%' IDENTIFIED BY "jyk123" ;

Mysqldump 1449 错误解决 mysqldump: Got error: 1449

备份数据库 p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Monaco; color: #f4f4f4; background-color: rgba(0, 0, 0, 0.75) } span.s1 { } $ mysqldump -uroot -p db > backup/db.sql 上面的terminal 执行 出现了下面的错误 p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0

导出Mysql数据库出错:Got error: 145: Table 'wp_options' is marked as crashed and should be repaired when using LOCK TABLES的解决方法

mysqldump: Got error: 145: Table 'wp_options' is marked as crashed and should be repaired when using LOCK TABLES 错误如上所示. 今天在给自己的wp网站搬家的时候,导出数据时发现导不出来,报了如上的错误,在网上找了一下资料,说是这张张被标记有问题,需要优化.参考: http://www.cnblogs.com/hakuci/archive/2012/03/20/2407723.html

错误代码: 1449 The user specified as a definer ('root'@'%') does not exist

1.错误描述 1 queries executed, 0 success, 1 errors, 0 warnings 查询:call insertDate() 错误代码: 1449 The user specified as a definer ('root'@'%') does not exist 执行耗时 : 0 sec 传送时间 : 0 sec 总耗时 : 0.175 sec 2.错误原因 这是权限问题,授权给root的所有的SQL语句 3.解决办法 GRANT ALL PRIVILEGE

mysqldump 1168 error

今天在备份MYSQL数据库的时候,导出TEST数据时发现报错: C:\Users\Administrator>mysqldump -u root -p test>test.sqlEnter password: ****mysqldump: Got error: 1168: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist when using L

错误代码: 1449 The user specified as a definer ('root'@'%') does not exist

1. 错误描写叙述 1 queries executed, 0 success, 1 errors, 0 warnings 查询:call analyse_use('20150501','20150601') 错误代码: 1449 The user specified as a definer ('root'@'%') does not exist 运行耗时 : 0 sec 传送时间 : 0 sec 总耗时 : 0.003 sec 2. 错误原因 在存储过程里.我用的用户是root,而实际的是s

MYSQL导出报错mysqldump: Got error: 1016:

公司有一个内部论坛数据库,比较小1G左右,版本是MySQL 5.1,在导出数据库时报错如下: [[email protected] ~]# mysqldump -uroot -p xxxx > xxxxx Enter password:  mysqldump: Got error: 1016: Can't open file: './xxxxxx' (errno: 24) when using LOCK TABLES 根据资料,当MySQL open_file_limit设置低于MySQL打开的

mysqldump: Got error: 1045: Access denied for user 'roor'@'localhost' (using pas sword: YES) when tr

1.错误描述 C:\Users\Administrator>d: D:\>cd MySQL\Program Files\MySQL\MySQL Server 5.6\bin D:\MySQL\Program Files\MySQL\MySQL Server 5.6\bin>mysqldump --all-databases -uro or -p > all.sql Enter password: ************** mysqldump: Got error: 1045:

mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database 'upmngr' when using LOCK TABLES

在进行Mysql备份的时候: sudo /usr/bin/mysqldump -ubackupuser -pdbpassword --database upmngr >/tmp/`date '+%Y%m%d%H%M%S'`.log 出现下面的错误提示: Warning: Using unique option prefix database instead of databases is deprecated and will be removed in a future release. Pl