Home > Database > Mysql Tutorial > body text

How to convert sqlserver to mysql

藏色散人
Release: 2021-12-28 10:00:38
Original
11801 people have browsed it

How to convert mysql from sqlserver: 1. Move the database to the local SQLServer; 2. Create a new database with the same name; 3. Select the SQLServer provider and enter the parameters; 4. Import the data.

How to convert sqlserver to mysql

The operating environment of this article: Windows 7 system, Navicat Premium version 15, Dell G3 computer.

How to convert SQLServer to MYSQL (data connection)

This conversion requires the use of the tool Navicat Premium.​

First, move the database to the local SQLServer. I have tried directly transferring to the local Mysql on other SQLServer servers on the LAN. There seems to be a problem. I want to restore the remote database backup to the local.

 1. Open Navicat Premium, create a new database with the same name, and then click "Import Wizard" on the table. and select "ODBC".

 

 2. Select the SQLServer provider and enter the parameters.

 

 

 

 3. Then take the next step, the next step.

it's here There is a conditional query. If there is too much unwanted data, or there is a problem with the field type that causes an import error, you can set it here.

 

Finished, let’s have dinner after get off work.

Supplement: This thing does not support SQLServer to MySQL data type conversion very well and needs to be set manually. But there is no problem in importing data. The best way is:

First use the tool: mss2sql to convert the SQLServer table into a MYSQL table, and then use this tool ODBC import data.

 2014-11-26

Problem record:

1. When SQLServer data is imported into MySQL, mss2sql does not handle bit types well. , so the length of the field table with bit type must be changed to 8 after importing, otherwise subsequent import operations will fail.

 2. When importing data, if it is a LAN database, the type to be selected is:

 

The SQL statement of SQLServer is the SQL statement of MySQL:

1. Insert auto-increment column to Null (if it is abbreviated and do not write the column name);
2. Paging should generally be changed to MySQL's Limit;
3. Table name is not required Prefixes such as dbo. appear;

Recommended learning: "mysql video tutorial"

The above is the detailed content of How to convert sqlserver to mysql. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template