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

javascript Blob object to achieve file download

Table of contents illustrate 1. Blob object 2. Fr...

How to copy MySQL table

Table of contents 1.mysqldump Execution process: ...

Review of the best web design works in 2012 [Part 1]

At the beginning of the new year, I would like to...

A time-consuming troubleshooting process record of a docker error

Table of contents origin Environmental Informatio...

MySQL green version setting code and 1067 error details

MySQL green version setting code, and 1067 error ...

A simple way to achieve scrolling effect with HTML tag marquee (must read)

The automatic scrolling effect of the page can be...

Detailed explanation of the solution to image deformation under flex layout

Flex layout is a commonly used layout method nowa...

Some small methods commonly used in html pages

Add in the <Head> tag <meta http-equiv=&q...

Implementation steps of encapsulating components based on React

Table of contents Preface How does antd encapsula...

How to run Hadoop and create images in Docker

Reinventing the wheel, here we use repackaging to...

How to use Vue cache function

Table of contents Cache function in vue2 Transfor...

A complete record of a Mysql deadlock troubleshooting process

Preface The database deadlocks I encountered befo...

How to install jupyter in docker on centos and open ports

Table of contents Install jupyter Docker port map...

Data storage implementation method in WeChat applet

Table of contents Global variable globalData Page...

How to purchase and install Alibaba Cloud servers

1. Purchase a server In the example, the server p...