Найдено тут

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04

--

sudo mysql

SELECT user,authentication_string,plugin,host FROM mysql.user;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

FLUSH PRIVILEGES;

 

NewMixer (c) 2017