Enter password: //直接回车 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 44 Server version: 10.1.29-MariaDB-6 Ubuntu 18.04
1 2
use mysql update user set Password=PASSWORD('password'), plugin='mysql_native_password' where User='root' and Host='localhost'