Error when trying to migrate postgresql db to mysql with workbench

前端 未结 7 1839
青春惊慌失措
青春惊慌失措 2021-02-14 02:08

I am trying to migrate a postgresql database to mysql following this tutorial: http://mysqlworkbench.org/2012/11/how-to-migrate-postgresql-databases-to-mysql-using-the-mysql-wo

相关标签:
7条回答
  • 2021-02-14 02:18

    In my case I was using Windows 64bit and using "PostgreSQL ANSI(x64)" did connect to the Postgres database but it gave errors while migrating the database from Postgres to Mysql. I used the driver "PostgreSQL Unicode(x64)" and it worked. If your data contains unicode characters i.e. non ASCII characters use "PostgreSQL Unicode(x64)" drivers.

    0 讨论(0)
  • 2021-02-14 02:20

    Just quoting Craig Ringer's comment to make it "more visible"

    If you have Windows 64Bits then you probably had installed only the 64bit psqlodbc drivers, so all you need is to use e.g.: PostgreSQL ANSI(x64) (I had used that and worked for me)

    Just stuck onto it for at least 1h until came into Craig's comment, Thanks man!

    0 讨论(0)
  • 2021-02-14 02:27

    Download and install the MSI package for psqlODBC from http://www.postgresql.org/ftp/odbc/versions/msi/ .

    Then connect using the following settings
    Driver: PostgreSQL ANSI
    Connection method: ODBC (Manually entered parameters)
    This worked for me.

    0 讨论(0)
  • 2021-02-14 02:28

    I encountered the same error. Here is how I solved it:

    1. I downloaded the drivers from https://www.postgresql.org/ftp/odbc/versions/msi/ (Select the most recent one for x64)

    2. In the Overview form, click on the button "Open ODBC Administrator". Add the recently installed "PostgreSQL ANSI(x64)". Click "Finish".

    3. When you "Start Migration", in the source selection form, use "Driver: PostgreSQL ANSI(x64)"

    0 讨论(0)
  • 2021-02-14 02:29

    This worked for me (w/ ODBC installed):

    1. Click "Open ODBC Administrator" button
    2. Go to "Drivers" tab
    3. Copy the "Name" Column value from your ODBC and close popup
    4. In tab "Parameters", "Driver" field, Past the "Name" copied
    5. Test connection
    0 讨论(0)
  • 2021-02-14 02:31

    For those on Ubuntu install the postgres ODBC drivers:

    apt-get install odbc-postgresql
    
    0 讨论(0)
提交回复
热议问题