Description:
I m not able to insert a record into admin_log,It is showing duplicate entry of id field
mysql> select * from admin_log;
+-----+---------------------+--------+---------------------------------+
| id | time | aduser | action |
+-----+---------------------+--------+---------------------------------+
| 127 | 2006-04-16 10:05:21 | admin1 | gg.com allowd to localok Policy |
+-----+---------------------+--------+---------------------------------+
1 row in set (0.00 sec)
mysql> desc admin_log;
+--------+--------------+------+-----+-------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------+--------------+------+-----+-------------------+----------------+
| id | tinyint(4) | | PRI | NULL | auto_increment |
| time | timestamp | YES | | CURRENT_TIMESTAMP | |
| aduser | varchar(20) | | | | |
| action | varchar(100) | | | | |
+--------+--------------+------+-----+-------------------+----------------+
4 rows in set (0.01 sec)
mysql> insert into admin_log (time,aduser,action) values (NOW(),'admin1','gg.com allowd to localok Policy');
ERROR 1062 (23000): Duplicate entry '127' for key 1
mysql>
How to repeat:
mysql> select * from admin_log;
+-----+---------------------+--------+---------------------------------+
| id | time | aduser | action |
+-----+---------------------+--------+---------------------------------+
| 127 | 2006-04-16 10:05:21 | admin1 | gg.com allowd to localok Policy |
+-----+---------------------+--------+---------------------------------+
1 row in set (0.00 sec)
mysql> desc admin_log;
+--------+--------------+------+-----+-------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------+--------------+------+-----+-------------------+----------------+
| id | tinyint(4) | | PRI | NULL | auto_increment |
| time | timestamp | YES | | CURRENT_TIMESTAMP | |
| aduser | varchar(20) | | | | |
| action | varchar(100) | | | | |
+--------+--------------+------+-----+-------------------+----------------+
4 rows in set (0.01 sec)
mysql> insert into admin_log (time,aduser,action) values (NOW(),'admin1','gg.com allowd to localok Policy');
ERROR 1062 (23000): Duplicate entry '127' for key 1