The Wayback Machine - https://web.archive.org/web/20201205145845/https://github.com/dimitri/pgloader/issues/917
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PgLoader does not support MySQL Authentication Switch protocol. #917

Closed
xiangyhu opened this issue Feb 27, 2019 · 3 comments
Closed

PgLoader does not support MySQL Authentication Switch protocol. #917

xiangyhu opened this issue Feb 27, 2019 · 3 comments

Comments

@xiangyhu
Copy link

@xiangyhu xiangyhu commented Feb 27, 2019

ERROR mysql: Failed to connect to mysql at "XXX" (port 3306) as user "XXX": The value of SEQUENCE is "/d*w+D7Lu_w3`G-i", which is not of type IRONCLAD::SIMPLE-OCTET-VECTOR

  • pgloader --version

    pgloader version "3.6.1"
    

compiled with SBCL 1.4.0-1.el7
```

  • did you test a fresh compile from the source tree?

    Yes

  • did you search for other similar issues?
    Yes

  • how can I reproduce the bug?

    Incude a self-contained pgloader command file.

    Microsoft Azure's MySQL service is using MySQL's authentication switch protocol and pgLoader does not support that. You can actually expect this behavior by looking at pgLoader's code or create and try an Azure MySQL server to test with.

pgloader --debug --verbose script.load

script.load contents:

load database
FROM  mysql://XXX
 INTO  postgresql://XXX
WITH include drop, create tables, no truncate,
create indexes, reset sequences, foreign keys
--SET maintenance_work_mem to '128MB', work_mem to '12MB', search_path to 'sakila'
CAST type datetime to timestamptz
drop default drop not null using zero-dates-to-null,
type date drop not null drop default using zero-dates-to-null
MATERIALIZE VIEWS film_list, staff_list
-- INCLUDING ONLY TABLE NAMES MATCHING ~/film/, 'actor'
-- EXCLUDING TABLE NAMES MATCHING ~<ory>
BEFORE LOAD DO
$$ create schema if not exists testdb; $$;
  • How the data is different from what you expected, if relevant
@dimitri
Copy link
Owner

@dimitri dimitri commented Mar 1, 2019

I believe this issue is a duplicate of #782 ; can you confirm that? thanks

@twocode
Copy link

@twocode twocode commented Mar 8, 2019

Hi @dimitri , yes. Basically this is some kind of MySQL's authentication switch protocol.

@dimitri
Copy link
Owner

@dimitri dimitri commented Mar 14, 2019

I'll close the issue here then, let's keep track of any progress we manage to make on the other one.

@dimitri dimitri closed this Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.