当前位置:网站首页>[Warning] TIMESTAMP with implicit DEFAULT value is deprecated

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated

2022-06-10 21:33:00 Music master

A test server MySQL There's a problem with the service , And the service cannot be restarted .

Use kill kill mysqld process ,mysql The process becomes a zombie process , Still there, .

Finally, take the rough method of restarting the server .

Results during restart ,mysql Close the prompt to 20 minute . After a long wait , Finally started up .

All services are normal .

In order to find out the problem , Looked at the mysqld.log Content .

There are 2 I think it's useful .

1 Yes zanao A table error in the database , The tips are as follows :

[ERROR] /usr/sbin/mysqld: Incorrect key file for table './zentao/zt_cron.MYI'; try to repair it

The other is a warning to start the service , The contents are as follows :

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated

The following settings are made , Start again mysql The service warning disappears .

[mysqld]

explicit_defaults_for_timestamp=true

The first error is the error prompt after the Zen platform database table installed on the server is damaged .

In fact, when the Zen platform opens the page , Also reported a large number of errors .

原网站

版权声明
本文为[Music master]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206102018060895.html