Remote connection to the MySQL error could not link may be due to permission issues mysql database user table in MySQL, you can make the following changes:
-
MySQL user login with highest privileges on the machine installation of MySQL:
mysql -u root -p
-
Modify permissions:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'yourpassword';
-
Update:
flush privileges;
-
drop out:
exit;
Connection success again