Mysql error to solve the problem of importing and exporting

1.datetime Type:
When datetime value 0000-00-00: 00: 00: 00, mysql data of this entry is not accepted, can of course ignore into table insert .............................. reason is our database does not support datetime is 0, which is to set a pattern.
At this point we can query the database existing models:
the SELECT @@ sql_mode;
get our existing database schema:
the NO_ZERO_DATE and NO_ZERO_IN_DATE these two types, can be removed.
Run SET GLOBAL sql_mode = 'ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES , ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION';
preferably are removed: 'STRICT_TRANS_TABLES, NO_ENGINE_SUBSTITUTION' leaving only 2 types.
Reinserted, query ok!

2. The problem caused by too large databases:
1. [mysqld] add the following one: max_allowed_packet = 5000M own definition data
2.php.ini configuration

Guess you like

Origin www.cnblogs.com/wujf-myblog/p/12077428.html
Recommended