Reset MySQL/MariaDB 5.7+ root Password Xubuntu 20.04
Hi! The Tutorial shows you Step-by-Step How to Reset MySQL/MariaDB 5.7+ root User Password in Xubuntu 20.04 Focal LTS GNU/Linux Desktop/Server.
And I’ve tried to Reset MySQL root Pass on Xubuntu 20.04 in many Ways but this was the Only one Working Solution!

Stop MySQL Server.
Or in case:Copysudo service mysql stop
Copysudo service mariadb stop
Make the Needed Directory.
Copysudo mkdir /var/run/mysqld
And Set mysql as User
Copysudo chown mysql: /var/run/mysqld
Start mysqld_safe.
Copysudo mysqld_safe --skip-grant-tables --skip-networking &
Login into MySQL without Pass
Open a New Window or Demonize the process with Ctrl+c:Copymysql -uroot mysql
Setting New Pass.
CopyUPDATE mysql.user SET authentication_string=PASSWORD('YOUR-NEW-PASS'), plugin='mysql_native_password' WHERE User='root' AND Host='localhost';
CopyFLUSH PRIVILEGES;
Change “YOUR-NEW-PASS” in the Above…
And then “Ctrl+c” to Quit MySQL.Kill mysqld Process
But you may need to find out the mysqld process with:Copysudo pkill mysqld
And then use the process ID to kill it as Eg.:Copyps ax | grep mysqld
Copysudo kill -9 166394
Restart MySQL/MariaDB Server.
Or:Copysudo service mysql start
Copysudo service mariadb start
And with this your Issue of Resetting MySQL 5.7 Pass on Xubuntu 20.04 should be Successfully Solved! ;)