How to reset root MySQL/MariaDB password on Ubuntu 20.04 Focal Fossa Linux - LinuxConfig.org

In this guide we will reset the lost root MySQL/MariaDB password on Ubuntu 20.04 Focal Fossa. This can be achieved by disabling the root authentication and longing in without the password.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-reset-root-mysql-mariadb-password-on-ubuntu-20-04-focal-fossa-linux