当前位置:网站首页>Converting MySQL data to PostgreSQL with Navicat
Converting MySQL data to PostgreSQL with Navicat
2022-06-13 04:36:00 【ChangYan.】
For recent projects, you need to use postgresql, But the previous data are mysql Format , Because some insert statements are different , Direct to postgresql Import .sql The document will report an error . Let's use navicat To transform .
First, in the navicat There should be in the library mysql Database and postgresql database . Pictured , my 【 Local connection 】 yes mysql Of ,【huaweiyun】 yes postgresql Of .
If not by default postgresql The connection of , First, create a new connection 
Then it needs to be in postgresql Create a new database in , It is used to store data that will be converted . For example, I created a new one named 【edu】 The database of 
The display after construction is as shown in the figure .
And then in navicat You can find 【 Tools 】–> 【 The data transfer 】
Then select the location of the two databases . Click on 【 next step 】
Select a custom table , Click next 
Default configuration on this page , First click 【 Start 】, Then a pop-up box will appear , Click on 【 determine 】
Wait for the data transfer to complete . Probably there won't be any problem , However, when there are many Chinese characters, there will be problems , Directly to terminate .( It seems that this table exceeds 50 If there are a large number of Chinese characters in a record, an error will be reported )
I want to deploy quickly , Delete the error table directly , Other information can be transformed correctly .( It's too violent to delete directly , Do not advocate , And it will lead to the original mysql Data loss , I suggest backing up the original before deleting mysql The data in ). I don't need those tables with Chinese characters for the project , So you can delete it and then convert it , If you have many necessary Chinese characters in your watch , It is suggested to use other methods to see if it can be solved .
After the transmission is completed, we can see that the data has been successfully converted 

Be accomplished !
边栏推荐
- 一款開源的Markdown轉富文本編輯器的實現原理剖析
- Summary of webdriver API for web automated testing
- 你的一对一会议效率低下,你可以这么做!
- Powershell 加域 Add-Computer模块
- Common terms of electromagnetic compatibility
- Uni app dynamic add style dynamic bind background image invalid
- Serial communication learning
- 120. 三角形最小路径和-动态规划
- CTFSHOW SQL注入篇(211-230)
- 2022 chlorination process operation certificate examination question bank and simulation examination
猜你喜欢

Uni app dynamic add style dynamic bind background image invalid

Colab tutorial (super detailed version) and colab pro/pro+ evaluation

Small program imitating Taobao Jiugong grid sliding effect

Read paper 20 together: spatiotemporal prediction of PM2.5 concentration by idw-blstm under different time granularity

Collection of wrong questions in soft test -- morning questions in the first half of 2010

Knife4j aggregation 2.0.9 supports automatic refresh of routing documents

CreateAnonymousThreadX给匿名线程传递参数

120. 三角形最小路径和-动态规划

2022 ICLR | CONTRASTIVE LEARNING OF IMAGE- AND STRUCTURE BASED REPRESENTATIONS IN DRUG DISCOVERY

一款开源的Markdown转富文本编辑器的实现原理剖析
随机推荐
Message scrolling JS implementation
XOR prefix and +map maintenance
Redis master-slave replication, sentinel mode, cluster
力扣刷题647.回文子串
用navicat将mysql数据转化为postgresql
【剑指Offer】面试题24.反转链表
Li Kou brush question 338 Bit count
Express scaffold creation
Colab tutorial (super detailed version) and colab pro/pro+ evaluation
【Try to Hack】upload-labs通关(暂时写到12关)
Get verification code
力扣刷题338.比特位计数
记录一次排查问题的经过——视频通话无法接起
Suffix Automaton
Your one-on-one meetings are inefficient. You can do this!
PowerShell:因为在此系统上禁止运行脚本,解决方法
Reread the classic: end to end object detection with transformers
2022 ICLR | CONTRASTIVE LEARNING OF IMAGE- AND STRUCTURE BASED REPRESENTATIONS IN DRUG DISCOVERY
Sword finger offer 56 - I. number of occurrences in the array
February 25, 2021 (Archaeology 12 year Landbridge provincial competition)