Unable to connect with root because of skip-name-resolve option
The issue may be that you have 2 entries for root, and that root@% doesn't have the same password as the root@localhost. Changing options may change the order MySQL uses each entries.