MongoError: E11000 duplicate key error collection: blog.users index: email_1 dup key

简介: MongoError: E11000 duplicate key error collection: blog.users index: email_1 dup key

MongoError: E11000 duplicate key error collection: blog.users index: email_1 dup key

报错如下:

原因:之前在数据库中已经创建了一个email跟这个一样的用户,因此会导致报错。

解决办法:改变一下你现在创建的这个用户的email就OK了


相关文章
|
1月前
|
数据库 Python
Duplicate entry for key username
Duplicate entry for key username
12 0
|
6月前
|
关系型数据库 MySQL 数据库
解决出现的SQLIntegrityConstraintViolationExceptionw:Duplicate entry ‘10‘ for for key ‘user.PRIMARY‘问题
解决出现的SQLIntegrityConstraintViolationExceptionw:Duplicate entry ‘10‘ for for key ‘user.PRIMARY‘问题
|
SQL 数据库
ON DUPLICATE KEY UPDATE
ON DUPLICATE KEY UPDATE
96 0
ON DUPLICATE KEY UPDATE
解决Only void and foreign elements can be self closed “ xxxx-xxxx“报错
解决Only void and foreign elements can be self closed “ xxxx-xxxx“报错
解决Only void and foreign elements can be self closed “ xxxx-xxxx“报错
test of duplicate control id
Created by Jerry Wang, last modified on Aug 21, 2015
test of duplicate control id
|
索引 关系型数据库 Oracle
20171229V$DB_OBJECT_CACHE type='INDEX'
[20171229]V$DB_OBJECT_CACHE type='INDEX'.txt --//前几天一直在使用V$DB_OBJECT_CACHE视图查询FULL_HASH_VALUE,验证自己推断FULL_HASH_VALUE如何计算.
1072 0