Solve the problem of Navicat importing database data structure sql reporting error datetime(0)

Solve the problem of Navicat importing database data structure sql reporting error datetime(0)

Error occurs:

When exporting the database from MySQL 5.7 to SQL and importing it on MySQL 5.5, an SQL statement error is reported: datetime(0)…

Cause of the error

The datetime and timestamp of mysql5.7 and mysql5.5 are incompatible

The format exported by mysql5.7 is: datetime(0), but mysql5.5 cannot recognize this syntax.

Solution

Change datetime(0) in the export statement to datetime, or change timestamp(0) to timestamp

Keep database versions consistent

Supplementary knowledge: Navicat imports sql, and the database data keeps failing to import all the data.

As shown below:

Import interface basic options

Solution:

result:

The above article on solving the problem of sql error datetime(0) when importing database data structure into Navicat is all the content that the editor shares with you. I hope it can give you a reference, and I also hope that you will support 123WORDPRESS.COM.

You may also be interested in:
  • How to use Navicat to import SQL files
  • Navicat imports csv data into mysql
  • How to import Chinese data into csv in Navicat for SQLite
  • Navicat for MySql Visual Import CSV File
  • Import csv file into mysql using navicat
  • How to use Navicat to export and import mysql database
  • Solution to the error when importing MySQL big data in Navicat
  • How to import SQL files in Navicat Premium

<<:  Detailed explanation of the differences and applications of {{}}, v-text and v-html in Vue

>>:  Use Nginx to build a streaming media server to realize live broadcast function

Recommend

Quick understanding and example application of Vuex state machine

Table of contents 1. Quick understanding of conce...

Detailed tutorial for installing mysql5.7.21 under Windows system

MySQL Installer provides an easy-to-use, wizard-b...

Docker setting windows storage path operation

When installing Docker on Windows 10, after selec...

In-depth analysis of the Linux kernel macro container_of

1. As mentioned above I saw this macro when I was...

How to use Nginx to carry rtmp live server

This time we set up an rtmp live broadcast server...

Solution to Docker pull timeout

Recently, Docker image pull is very unstable. It ...

Pure CSS3 to achieve mouse over button animation Part 2

After the previous two chapters, do you have a ne...

JavaScript to implement random roll call web page

JavaScript writes a random roll call webpage for ...

How to change MySQL character set utf8 to utf8mb4

For MySQL 5.5, if the character set is not set, t...

Implementation of k8s node rejoining the master cluster

1. Delete node Execute kubectl delete node node01...

How to solve the error of PyCurl under Linux

Solution to "Could not run curl-config"...

About the problem of running git programs in jenkins deployed by docker

1. First, an error message is reported when assoc...

Detailed introduction to the MySQL installation tutorial under Windows

Table of contents 1. Some concepts you need to un...

JavaScript to achieve window display effect

This article shares the specific code of JavaScri...