Transfer token nginx docker swarn

If i write a node connection test script i can connect two both mysql server, i even changed the passwords to be the same user password. it seems either the password is not present or the host name. its really strange.