How to solve the problem of database date error before importing mysql5.x to mysql5.7 !, Mysql5.xmysql5.7

Source: Internet
Author: User

How to solve the problem of database date error before importing mysql5.x to mysql5.7 !, Mysql5.xmysql5.7

 

How to solve the problem of database date error before importing mysql5.x to mysql5.7!

Modify the configuration file of mysql5.7 as follows:

Linux: Find the installation path of mysql to enter the default/usr/share/mysql/, edit the my-default.cnf

Use the search function "/" to find "SQL _mode = NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES"

Delete or annotate it.

Windows: Find the mysql installation path in 32-Bit mode and directly modify the my. ini file using ctrl + f

The searched content should be SQL-mode = "STRICT_TRANS_TABLES, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION"

Comment it out or delete it.

In the 64-bit windows hidden folder C: \ ProgramData \, locate MySQL \ MySQL Server 5.7 and modify the configuration file my. ini.

The content searched by ctrl + f should be SQL-mode = "STRICT_TRANS_TABLES, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION"

Comment it out or delete it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.