Struggling with MYSQL Master/Slave replication.
I followed the the DigitalOcean document for setting up the MYSQL Master/Slave replication. https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql#see-more
Both servers only allow SSH login and the SCP command to move copy the database dump required me to use my “admin” account and required me to enter my SSH passphrase.
the SQL.CNF has the require_secure_transport = on
The connection error I get from SHOW SLAVE STATUS\G is below
Last_IO_Errno: 3159 Last_IO_Error: error connecting to master ‘<replication_account_name>@<priv_ip_address>:3306’ - retry-time: 60 retries: 23
Do I need to create a SSH key for the <replication_account_name> account on both servers or is the fix something else? If so what?
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.