中国·亚星-www.yaxin868.com|官网登录

[10501] PDOException in Connection.php line 451

SQLSTATE[HY000]: General error: 1364 Field 'ip' doesn't have a default value

  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 HY000
Driver Error Code 1364
Driver Error Message Field 'ip' doesn't have a default value
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 1364 Field 'ip' doesn't have a default value
Error SQL INSERT INTO `zm_page_visit` (`session_id` , `page` , `visit_time`) VALUES ('00b62ab861634e31008fce15a310d491' , '/m/gongyeshebei/410.html' , '2026-02-19 16:06:16')
Database Config
type mysql
hostname localhost
database cs_hirays_com
username cs_hirays_com
password 3k8FCB4EGt8WHD8B
hostport 3306
dsn
params []
charset utf8
prefix zm_
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
XML 地图