这个错误意味着什么“密钥'< group_key>'的重复条目'root @ localhost0' " ? [英] What this error mean " duplicate entry 'root@localhost0' for key '<group_key>' " ?

查看:169
本文介绍了这个错误意味着什么“密钥'< group_key>'的重复条目'root @ localhost0' " ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习一些SQL注入,我在mysql控制台中输入:

hi , i was learning some SQL-injection , i type this in mysql console :

mysql> select count(*),concat((select user()),floor(rand()*2)) as a from informa
tion_schema.tables group by a

;

,在我输入两次相同的查询后,我面临这个错误消息:

;
and after i enter the same query twice i face this error msg :

ERROR 1062 (23000): Duplicate entry 'root@localhost0' for key '<group_key>'





你能告诉我为什么我会遇到这个错误吗?



我尝试了什么:



i搜索谷歌,但我不明白。



can you tell me why i face this error ?

What I have tried:

i search in google, but i dont understand .

推荐答案

通常此错误表示< group_key>只允许使用唯一值,并且您已在该列中拥有root @ localhost0。



这可能解释了为什么它第一次运行,但不是第二次运行。
Typically this error means that <group_key> only allows unique values and you already have 'root@localhost0' in that column.

This probably explains why it works the first time, but not the second time.


谢谢你,你让我的一天:)
Thanks man , you Made my day :)


这篇关于这个错误意味着什么“密钥'&lt; group_key&gt;'的重复条目'root @ localhost0' &QUOT; ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆