When setting up a replication server, I can successfully connect to my main server using the `mysql` command-line tool:
mysql -u REMOTE_USER -P REMOTE_PORT -h REMOTE_HOST -p REMOTE_DATABASE
However, when I try to `START SLAVE`, the connection fails with the message `Can't connect to MySQL server on 'REMOTE_HOST' (13 "Permission denied")`.
Stranger still, the general log on the main server shows the cli `mysql`'s successful connection but doesn't show any attempts from the `START SLAVE` command. (If I intentionally use the wrong password with the cli `mysql`, though, the general log does show that failed attempt.) **How can I troubleshoot this?**
`SHOW SLAVE STATUS` outputs the following:
Slave_IO_State: Connecting to master
Last_IO_Error: error connecting to master 'REMOTE_USER@REMOTE_HOST:REMOTE_PORT' - retry-time: 60 maximum-retries: 86400 message: Can't connect to MySQL server on 'REMOTE_HOST' (13 "Permission denied")
Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it