mysql5.x database file into a database error solutions mysql5.7

Since mysql5.7 timestamp type is not allowed
timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ,
create a table that will be reported after abnormal

Mysql5.7 modify configuration files can be solved, as follows:

windows version:

1, the database file using navicat export mysql5.6

2, find the mysql configuration file

3, edit mysql.ini file in [mysqld] add the following
SQL-the MODE = STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION
       
4, restart the mysql service, then you can create a table of normal

5, using navicat import mysql 5.x database backup files, completed!

Reference:
https://www.jb51.net/article/93052.htm
https://www.bbsmax.com/A/8Bz8YWmOJx/
https://www.cnblogs.com/houzs/p/10197626.html

Guess you like

Origin www.cnblogs.com/wufeiyun/p/11649000.html