Detailed steps for Navicat to remotely connect to SQL Server and convert to MySQL

Detailed steps for Navicat to remotely connect to SQL Server and convert to MySQL

Preface

Recently, I encountered a program using SQL Server in a project. I had never used this database before, so I tried to convert it to MySQL format. However, I didn’t want to install SQL Server locally, so I decided to install it on a remote Windows server and connect to it locally. However, I encountered many problems during the implementation process, which I recorded here. It is convenient for your own home or everyone to refer to when needed. Let’s take a look at it below.

Environmental Information

Let me first talk about the environment. The server system is Windows Server 2016 Datacenter and the database is SQL Server 2016 Express.
The local system is Windows 7 and the software used is Navicat Premium 11.2.7.

The installation of SQL Server went smoothly, so I won't go into details here. Don't forget to install Microsoft SQL Server Management Studio as well...
I have never used SQL Server before, and I don't even know how to find my username and password after installing it...

Get Username and Password

1. Open Microsoft SQL Server Management Studio and select Windows Authentication when logging in. You can log in without a password.

2. Right-click the open connection, select Properties, select Security, and then set it to SQL Server and Windows Authentication mode.

3. Select Connection, then select Allow remote computers to connect to this server (seems to be the default), click OK to save.

4. In the opened connection, expand Security, expand Logins, open the properties of the sa user, set a new password and save it. I guess this sa user is similar to the root user in MySQL. We will use this account and password to log in later.

5. Open SQL Server Configuration Manager, expand SQL Server Network Configuration, open the SQLEXPRESS protocol (mine is the default for the Express version, find the corresponding one for others), open its TCP/IP properties, select Yes for Enabled and Listen All in the Protocol tab, then in the IP Address tab, modify the configuration of IP1 at the bottom, set TCP Port to 1433, confirm and save, as shown in the figure below.

6. Restart the SQL Server service. You can restart it in SQL Server Configuration Manager. Some people say that you must start the SQL Server Browser service, but it is not necessary in actual tests.

7. Add exceptions to the firewall. Control Panel -> System and Security -> Windows Firewall -> Allow an app or feature through Windows Firewall -> Allow other apps -> Path -> [SQL Server installation directory]\MSSQL\Binn\sqlservr.exe, confirm and save all the way, and you're done!

Local Navicat connects to remote SQL Server

Open Navicat, create a new connection -> SQL Server -> connection name is arbitrary, fill in the remote server address for IP address, select SQL Server authentication, the username is sa, and the password is the password just now. The connection test will succeed. If it fails, it is probably because there is a problem with the above configuration, then confirm and save.

It seems that everything said at this step is nonsense. -.-

Convert SQL Server data to MySQL data

The premise is that the MySQL database has been set up locally.

1. Create a new MySQL connection and create a database after connecting. (No need to say more)

2. Double-click the newly created MySQL database, select Import Wizard, select ODBC, and click Next.

3. In the Import from option, select Microsoft OLE Provider for SQL Server, and click Next.

4. Then set the server information in the connection tab, test the connection successfully, select the database to be converted, and then confirm.

5. Select the table to be imported, select the import mode, start importing, wait a while, and you're done!

Summarize

The above is the full content of this article. I hope that the content of this article can be of some help to your study or work. If you have any questions, you can leave a message to communicate.

You may also be interested in:
  • Navicat connects to SQL Server database (graphic steps)
  • When Navicat Premium connects to the database, the error message appears: 2003 Can't connect to MySQL server on''localhost''(10061)
  • Use Navicat Premium to export SQLServer data to sql format
  • Navicat connects to SQL Server data: Error 08001 - Perfect solution for named pipe provider

<<:  The implementation process of Linux process network traffic statistics

>>:  Native js to implement drop-down box selection component

Recommend

mysql5.7.18.zip Installation-free version configuration tutorial (windows)

This is the installation tutorial of mysql5.7.18....

JS thoroughly understands GMT and UTC time zones

Table of contents Preface 1. GMT What is GMT Hist...

Reasons and methods for Waiting for table metadata lock in MySQL

When MySQL performs DDL operations such as alter ...

How to enable Swoole Loader extension on Linux system virtual host

Special note: Only the Swoole extension is instal...

Detailed explanation of JavaScript's built-in Date object

Table of contents Date Object Creating a Date Obj...

Implementation of HTML sliding floating ball menu effect

CSS Styles html,body{ width: 100%; height: 100%; ...

Mysql Chinese sorting rules description

When using MySQL, we often sort and query a field...

mysql 5.7.5 m15 winx64.zip installation tutorial

How to install and configure mysql-5.7.5-m15-winx...

Installation steps of Ubuntu 20.04 double pinyin input method

1. Set up Chinese input method 2. Set the double ...

Use of Linux date command

1. Command Introduction The date command is used ...

Detailed explanation of how to install PHP7 on Linux

How to install PHP7 on Linux? 1. Install dependen...

Installation and configuration tutorial of MySQL 8.0.16 under Win10

1. Unzip MySQL 8.0.16 The dada folder and my.ini ...

How to build a MySQL high-availability and high-performance cluster

Table of contents What is MySQL NDB Cluster Preli...