July 24, 2018 · Server Ubuntu Database

Fix Ubuntu 18 MySQL broken native password

sudo mysql
SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;