mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost' ubutntu 18.10

mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost' ubutntu 18.10

 

 

  1. mysql> uninstall plugin validate_password;
  2. mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';

Guess you like

Origin www.cnblogs.com/LeToGoing/p/11964142.html