Hi, Thanks for your reply.
FYI - Yes, the password is blank for root user. Even it worked fine while installing moodle on local.
Anyway, even I tried with a new user with password as below, still I am getting the same error.
$CFG->dbtype = 'mariadb';$CFG->dblibrary = 'native';$CFG->dbhost = 'localhost';$CFG->dbname = 'migmoodle';$CFG->dbuser = 'admin';$CFG->dbpass = 'password';$CFG->prefix = 'mdl_';$CFG->dboptions = array ( 'dbpersist' => 0, 'dbport' => '', 'dbsocket' => '', 'dbcollation' => 'utf8mb4_unicode_ci',);
Still the same issue, please suggest.