show grants for我用过,执行后会出来几条命令,但我是想看比如user用户在test是否有select ,upate,delte...等权限,要分开来看。我看mysql数据库下面user这个表看出来的就很清楚。
楼主已经给了test库的所有权限,应该不会出现问题.楼主你执行 show grants for user1@localhost /show grants for user1@'%' 其中的一条 有那些权限? 可能备份需要所有库的权限,换个拥有所有权限的帐号试试可以不?
我备份没问题,是恢复有问题,我换成root就好了
命令 mysql -h192.168.2.1 -u... -p.. <c:/sh.sql --default-character-set=utf8 客户端远程做的。恢复时,错误提示“ERROR 1227<42000>at line 10021: ACCESS denied; you need the SUPER privilege for this application
use mysql
select host,user,password from user
下面可以看但我use test下面没有这个表
楼主mysqldump的命令是什么.恢复的命令又是什么.
select host,user,password from mysql.user
看权限需要
show grants for user1@localhost /show grants for user1@'%' 其中的一条
show grants for user1@localhost /show grants for user1@'%' 其中的一条
有那些权限?
可能备份需要所有库的权限,换个拥有所有权限的帐号试试可以不?
客户端远程做的。恢复时,错误提示“ERROR 1227<42000>at line 10021: ACCESS denied; you need the SUPER privilege for this application