Troubleshooting "Can't connect ..." from MySQL slave to master
cat &lt;&lt;-EOF | mysql    Line OK
STOP SLAVE; Line OK
CHANGE MASTER 'AnyName4Slave' TO MASTER_HOST = '',MASTER_PORT=3306, MASTER_USER = 'user', MASTER_PASSWORD = 'password' ,MASTER_LOG_FILE='mysql-bin.041117', MASTER_LOG_POS=733093730;
START SLAVE 'AnyName4Slave';
EOF