Verify the permission tables on the server and that you're connecting to the correct server.
You must allow remote login on MySQL server to root user using the command below
Allow from localhost
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*root_user_password' WITH GRANT OPTION
Allow from anywhere
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY PASSWORD '*root_user_password' WITH GRANT OPTION
Allow from some host
GRANT ALL PRIVILEGES ON *.* TO 'root'@'X.X.X.X' IDENTIFIED BY PASSWORD '*root_user_password' WITH GRANT OPTION
Above command must be followed by FLUSH PRIVILEGES;
restart on MySQL service
That combination of username, host, and password is not allowed to connect to the server.