using the command
mysqldump --opt --user=username --password=keycode --host=mysql.mydomain.com databaseName > output.sql
for some reason I keep getting a 1045 error because the dump command tries to access "footageoftheworld.com" website instead of the host I want it to connect to.
However if I remove any letter from the hostname I specified, such as making it mysql.mydomai.com it then tries to connect to the one that is specified in the host parameter.
mysql.mydomain.com accesses footageoftheworld.com
mysql.mydomai.com accesses mysql.mydomai.com
mydomain.com accesses mydomain.com
anydomain.com accesses anydomain.com