SQL Error 1227: Access denied; you need the SUPER privilege for this operation

今天同事跟我说,他之前在mysql上建的视图没办法更改,更改的时候报如下错误:

起初,我以为是权限的问题,查了半天,权限明明是有的,新增了如下两条授权条件,还是不行:

grant 操作 MySQL 视图、查看视图源代码 权限:
grant create view on testdb.* to [email protected]’192.168.0.%’;
grant show view on testdb.* to [email protected]’192.168.0.%’;

最后实在没办法,自己新建个视图,竟然能创建成功,也能更改自己的刚刚创建的视图,这说明,用户的权限没有问题;最后想到那应该就是创建视图定义人的问题了,去看了一下,果然,这些视图虽然都是同一个用户名创建的,但之前授权的是原公司的公网IP,最近公司的公网IP变了导致 ,更改了定义人之后,搞定,如下图:

时间: 2024-11-08 18:45:26

SQL Error 1227: Access denied; you need the SUPER privilege for this operation的相关文章

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 1045 Access denied for user 'roor' 'l

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:

一看便知linux下mysql报错ERROR 1044: Access denied for user: '@localhost' to database 'mysql'

错误信息:ERROR 1044: Access denied for user: '@localhost' to database 'mysql' linux下解决方案: mysql> use mysql ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql' mysql> exit Bye [[email protected] ~]# service mysqld stop如果该命令不

Socket Error # 10013 Access denied

--------------------------- Debugger Exception Notification --------------------------- Project xxx.exe raised exception class EIdSocketError with message 'Socket Error # 10013 Access denied.'. --------------------------- Break   Continue   Help   --

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

mysql error: Access denied for user 'root'@'localhost' (using password: YES)

昨天重装了下系统,安装好mysql后,安装了客户端工具连接mysql,提示Access denied for user 'root'@'localhost' (using password: YES) 网上找了些解决方案,都是linux系统下的解决方案 一头雾水啊 下面是 windows解决方法 1. 管理员登陆系统,停止mysql服务或者结束mysqld-nt进程2. 进入命令行,来到mysql的安装目录.假设安装目录为 C:\Program Files (x86)\MySQL\MySQL S

ERROR 1044: Access denied for user: 'songyan' to database 'yikexiao' 的错误。

问题描述:新买的服务器,刚安装了mysql,创建了一个用户,也忘记了给他分配了什么权限,今天在建库的时候出现了这个问题. 出错原因:度娘告诉我是因为songyan用户没有建库的权限报的错. 解决: (1)登陆mysql mysql -u root -p (2)分配权限 GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;  ERROR 1044: Access denie

wamp phpMyAdmin error #1045 - Access denied for user [email protected] Fixed!

视频在这里: https://www.youtube.com/watch?v=iA_UYg5MLZk stackoverflow解决办法在这里:http://stackoverflow.com/questions/19482371/fix-access-denied-for-user-rootlocalhost-for-phpmyadmin 连接在这里很简单的! 百度搜索的话直接给出修改多少行多少行.... 我在这里简单的总结一下: 找到安装目录:G:\wamp\apps\phpmyadmin4

转-解决Mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost'问题

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Red Hat Enterprise Linux 5服务器上mysql启动报错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)原因1-启动命令错误:我开始的时候直接输入命令:mysql start 正确的启动命令是: