Solve authentication issue on mariadb

When installing Mariadb on Ubuntu I always have the problem of root ¬†password not set and authentication plugin set to unix_socket. The ¬†commands below solve the issues. # change to root sudo -s # stop mariadb server systemctl stop mariadb # start mariadb in safe mode mysqld_safe –skip-grant-tables –skip-networking & # log into mariadb without…