Admin's blog
  • Home
  • About
  • Author
Subscribe

Mr Tan

2 posts published

https://adminblog.com
Mysql import error: Invalid Datetime default value 0000-00-00 00:00:00

Mysql import error: Invalid Datetime default value 0000-00-00 00:00:00

Use the following import command to resolve the problem: mysql -uroot -p database_name --init-command="SET SESSION FOREIGN_KEY_CHECKS=0;SET SQL_MODE='ALLOW_INVALID_DATES';" < database_dump.sql

Mr Tan Feb 14, 2022 • 1 min read
How to reset remote GIT branch to a certain commit
git

How to reset remote GIT branch to a certain commit

git reset --hard <commit-hash> git push -f origin master

Mr Tan Nov 29, 2021 • 1 min read
Admin's blog © 2025
  • Data & privacy
  • Contact
Powered by Ghost