mysql remote connection failed Solution

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:

  1. MySQL user login with highest privileges on the machine installation of MySQL:
    mysql -u root -p
  2. Modify permissions:
    ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'yourpassword';
  3. Update:
    flush privileges;
  4. drop out:
    exit;

    Connection success again

Guess you like

Origin www.cnblogs.com/jiangnima/p/11751719.html