终端使用msyql进入maridb,输入如下命令进行root密码的设置

use mysql;

set password for 'root'@'localhost'=password('Abc123456');

flush privileges;