By alramalho
I’m trying to migrate to a managed database, both hosted in DigitalOcean, one is a MySQL cluster, the other is a POSTGRES one.
When I enter this command:
pgloader mysql://<DB_USER>:<DB_PASS>@<DB_HOST>:<DB_PORT>/<DB_NAME "postgresql://<DB_USER>:<DB_PASS>@<DB_HOST>:<DB_PORT>/<DB_NAME>"
I get this error:
Failed to connect to pgsql at "MY-HOST" (port MY-PORT) as user "MY-USER": Database error 28000: no pg_hba.conf entry for host <MY_PC_IPV4>, user "MY-USER", database "MY-DB", SSL off
Can somebody help me? I’m banging my head against the wall as I seem to be doing something very wrong.
I created the clusters normally and they are accepting all incoming connections (no IP restrictions).
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @alramalho
It seems like SSL mode is not enabled.
By default, you are not permitted to transmit data unencrypted (meaning SSL is required). Can you attempt the connection again with SSL enabled? You can download the CA Certificate from your database connection details to use verify-ca or verify-full SSL modes.
Regards, Priyanka
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.