When local tool attempts to connect to the server, if the situation can not connect appears, it might not have permission to be open.
First of all:
mysql> show databases;
Mysql database found
Access to the database to find the user table
mysql>show tables
mysql>update user set Host = '%' where User='root';