[10501] PDOException in Connection.php line 451

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '653458' for key 'PRIMARY'

  1. // 调试结束
  2. $this->debug(false);
  3. $this->numRows = $this->PDOStatement->rowCount();
  4. return $this->numRows;
  5. } catch (\PDOException $e) {
  6. if ($this->isBreak($e)) {
  7. return $this->close()->execute($sql, $bind);
  8. }
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } catch (\ErrorException $e) {
  11. if ($this->isBreak($e)) {
  12. return $this->close()->execute($sql, $bind);
  13. }
  14. throw $e;
  15. }
  16. }
  17. /**

Exception Datas

PDO Error Info
SQLSTATE 23000
Driver Error Code 1062
Driver Error Message Duplicate entry '653458' for key 'PRIMARY'
Database Status
Error Code 10501
Error Message SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '653458' for key 'PRIMARY'
Error SQL INSERT INTO `yunu_browse` (`ip` , `time` , `type`) VALUES ('3.236.19.251' , 1711636561 , 1)
Database Config
type mysql
hostname 127.0.0.1
database zjyis
username zjyis
password 7fewPvV5
hostport 3306
dsn
params []
charset utf8
prefix yunu_
debug 0
deploy 0
rw_separate
master_num 1
slave_no
fields_strict 1
result_type 2
resultset_type array
auto_timestamp
datetime_format Y-m-d H:i:s
sql_explain
builder
query \think\db\Query
break_reconnect false