Open pandaholic opened 5 years ago
Which version of MySQL do you have? It looks like the MySQL driver is failing to read/parse some of the early connection packets from your database server...
Which version of MySQL do you have? It looks like the MySQL driver is failing to read/parse some of the early connection packets from your database server...
It's 5.7
Hi, I am having the same issue, pgloader can't manage to connect to the Azure Hosted database
[x] pgloader --version
pgloader version "3.6.1"
compiled with SBCL 1.4.16.debian
I'm running it inside a docker container. I pulled the code from release 3.6.1 and rebuild the image
[x] did you search for other similar issues?
[x] how can I reproduce the bug?
Here is the load file I'm using:
LOAD DATABASE
FROM mssql://user:pwd@mydbdatabase.windows.net:1433/mydb
INTO postgresql://user:pwd@127.0.0.1/my-db
WITH quote identifiers
SET work_mem to '12MB', maintenance_work_mem to '128MB', search_path to 'dbo'
;
When running with the debug flag, I get
root@b4077409cb70:~# pgloader --debug mig.load
pgloader version 3.6.1
compiled with SBCL 1.4.16.debian
sb-impl::*default-external-format* :ANSI_X3.4-1968
tmpdir: #P"/tmp/pgloader/"
2019-09-23T18:27:22.003000Z NOTICE Starting pgloader, log system is ready.
2019-09-23T18:27:22.019000Z INFO Starting monitor
2019-09-23T18:27:22.022000Z LOG pgloader version "3.6.1"
2019-09-23T18:27:22.033000Z INFO Parsed command:
LOAD DATABASE
FROM mssql://user:pwd@mydbdatabase.windows.net:1433/mydb
INTO postgresql://user:pwd@127.0.0.1/my-db
WITH quote identifiers
SET work_mem to '12MB', maintenance_work_mem to '128MB', search_path to 'dbo'
;
2019-09-23T18:27:22.173000Z DEBUG CONNECTED TO #<PGLOADER.PGSQL:PGSQL-CONNECTION postgresql://user:pwd@127.0.0.1/my-db {1XXXX35DC3}>
2019-09-23T18:27:22.175000Z DEBUG SET client_encoding TO 'utf8'
2019-09-23T18:27:22.209000Z DEBUG SET work_mem TO '12MB'
2019-09-23T18:27:22.252000Z DEBUG SET maintenance_work_mem TO '128MB'
2019-09-23T18:27:22.298000Z DEBUG SET search_path TO dbo
2019-09-23T18:27:22.344000Z DEBUG SET application_name TO 'pgloader'
2019-09-23T18:27:22.493000Z LOG Migrating from #<MSSQL-CONNECTION mssql://user:pwd@mydbdatabase.windows.net:1433/mydb {1XXXX34053}>
2019-09-23T18:27:22.493000Z LOG Migrating into #<PGSQL-CONNECTION postgresql://user:pwd@127.0.0.1/my-db {1XXXX35DC3}>
Max connections reached, increase value of TDS_MAX_CONN
2019-09-23T18:27:22.680000Z ERROR mssql: Failed to connect to mssql at "mydbdatabase.windows.net" (port 1433) as user "user": %dbsqlexec fail
2019-09-23T18:27:22.680000Z LOG report summary reset
table name errors read imported bytes total time read write
----------------- --------- --------- --------- --------- -------------- --------- ---------
fetch meta data 0 0 0 0.000s
----------------- --------- --------- --------- --------- -------------- --------- ---------
----------------- --------- --------- --------- --------- -------------- --------- ---------
2019-09-23T18:27:22.715000Z INFO Stopping monitor
/etc/freetds/freetds.conf
:
[global]
tds version = 7.4
client charset = UTF-8
@pandaholic @Matroxt Hi all, I've meet the same problem. Do you have other tools to migrate mysql on Azure to local postgres? How do you handle migration after then?
I'm also facing the same problem connecting to an Azure MySQL DB:
Failed to connect to mysql at "************.mysql.database.azure.com" (port 3306) as user "************": The value of SEQUENCE is "*Mc3UeWj~(I", which is not of type IRONCLAD::SIMPLE-OCTET-VECTOR.
I think this is related to azure db user naming. In azure MySQL, the user name is "user@server_name". so the connection string to azure db becomes "user@ser_name@ip:port/db" As you can see, there are 2 @ in the connection string.
@ssung-yugabyte ; what is solution for this..
I am also wondering if there is a solution for this. Currently I am backing up the database locally and then running the migration - but there has to be a way to connect directly to the Azure SQL Database?
I am getting the same error:
Failed to connect to mssql at "blah" (port 1433) as user "blahuser": %dbsqlexec fail
Anyone found solution to this?
it is @ character which is creating the problem - escaped with %40 but gives error on that too.
same problem here...tried a lot of variations, but always getting the error. im able to login to database with intellij, but pgloader always returns the authentication error
Hi, Same probleme for me... I know that this issue is old, but have any of you found a solution to connect azure mariadb service to pgloader ?
Any updates on this? Really frustrating. Is this an issue with the username or some form of authentication protocol that pgloader doesn't support? I know you mentioned something similar @dimitri
I don't know if it would help for MariaDB, but for SQL Server, you can escape the @
in the user by duplicating it. So your user@something
becomes user@@something@database:port
in your configuration file.
This is still an issue. Escaping the @ by duplicating it does not work.
Hi,
We are migrating MySQL DB to PostgreSQL DB (both are hosted on Azure). And we receive very strange error:
.Do you know anything about issues with the migration of db hosted on Azure MySQL server? We tried different versions of pgloader, different OS (CentOS, Ubuntu), tried another database hosted on Azure, but the issue was the same (SEQUENCE value was different every time).
[x] pgloader --version
[x] did you test a fresh compile from the source tree?
[x] did you search for other similar issues?
[x] how can I reproduce the bug?
Here is .load file:
Thanks in advance!