Reset MySQL/MariaDB 5.7+ root Password Xubuntu 18.04
Hi! The Tutorial shows you Step-by-Step How to Reset MySQL/MariaDB 5.7+ root User Password in Xubuntu 18.04 Bionic LTS GNU/Linux Desktop/Server.
And I’ve tried to Reset MySQL root Pass on Xubuntu 18.04 in many Ways but this was the Only one Working Solution!
![How to Install MySQL Workbench in Xubuntu 18.04 Bionic LTS - Featured](https://tutorialforlinux.com/wp-content/media/dg139/intro/gnomePenguinBallPhpMySQL.jpg)
Stop MySQL Server.
sudo service mysql stop
Make the Needed Directory.
sudo mkdir /var/run/mysqld
And Set mysql as User
sudo chown mysql: /var/run/mysqld
Start mysqld_safe.
sudo mysqld_safe --skip-grant-tables --skip-networking &
Login into MySQL without Pass
Open a New Window or Demonize the process with Ctrl+c:mysql -uroot mysql
Setting New Pass.
UPDATE mysql.user SET authentication_string=PASSWORD('YOUR-NEW-PASS'), plugin='mysql_native_password' WHERE User='root' AND Host='localhost';
FLUSH PRIVILEGES;
Change “YOUR-NEW-PASS” in the Above…
And then “Ctrl+c” to Quit MySQL.Kill mysqld Process
sudo pkill mysqld
Restart MySQL Server.
sudo service mysql start
And with this your Issue of Resetting MySQL 5.7 Pass on Xubuntu 18.04 should be Successfully Solved! ;)