mysqldump: dumper has insufficent privileges to SHOW CREATE FUNCTION
来源:互联网 发布:台湾知见旅行社 编辑:程序博客网 时间:2024/06/04 01:28
问题如上所示
业务需要准备备份test_db,包括结构+数据+自定义函数
我的操作过程如下
grant select,lock tables on test_db.* to 'dumper'@'127.0.0.1' identified by 'bak' ;
↓
mysqldump -h127.0.0.1 -P3306 -pbak -udumper test_db -d > /home/databak/dumper2_bak.sql
发现问题后,觉得是权限的问题,那就简单点,直接赋予全部权限
grant all privileges on core_db.* to 'dumper'@'127.0.0.1' identified by 'bak' ;
还是报错,如题目所示。
查了很多资料,后来觉得肯定不是权限的问题,因为授权了全部的权限。
那只有查看数据库实例上的自定义函数有什么特别之处了。
CREATE DEFINER = `202producer`@`%` FUNCTION `NewProc
原来带了标识,终于找到位置了。可是怎么办呢,有没有好的解决方法呢?
思路是这样,用root创建test_db,再建立一个www用户,授权全部的操作(test_db),所有对test_db的操作都使用www用户。
之后,进行备份和还原就可以了。
问题还没有解决,只好对自定义函数不进行备份了
谁有更好的方法,欢迎指导
- mysqldump: dumper has insufficent privileges to SHOW CREATE FUNCTION
- Arcgis sde 10.1安装后不能创建空间库,提示User has privileges required to create database objects.
- oracle中的 create function 权限grant create function to user
- How to create function polymorphism in C
- How to create Function/Procedure in Oracle?
- How To Create Your Own Smarty Function
- How to create a function in SQL
- How-To create a MySQL database and set privileges to a user
- Error 1303.The installer has insufficient privileges to access this directory
- mysql create user grant privileges
- Function is used to Show/Hide the TaskBar
- How to Create an Application that has Office Style
- how to write a module dumper & disassembler
- how to write a module dumper & disassembler
- MySQL show create table
- SHOW CREATE TABLE table_name
- show create table ‘tablename’
- How to create a File-Compare function in Visual C#
- shape的使用
- Python——我的第一个Python程序cmd直接输入
- Myeclipse-Java head space
- POJ_3627_贪心
- hdu2389 Rain on your Parade--HK算法 & 最大匹配数
- mysqldump: dumper has insufficent privileges to SHOW CREATE FUNCTION
- 干货:机器学习领域的几种主要学习方式,如深度学习
- 如何打开Mac OSX原生的读写NTFS功能(支持OS X EI,秒杀NTFS+)
- uva 11270 插头dp入门
- eclipse如何搭载Tomcat
- Json解析
- unity JavaScript 与 c# 脚本之间的通信
- Android Studio (AS)快捷键
- 积木【NOIP2016提高A组模拟9.2】