Here is how to stop/kill the existing mysql daemon, in case it is running:
sudo ps -ef | grep mysql - checks if mysql/mysqld is one of the running processes.
sudo kill -9 'pid' mysqld - kills the daemon, if it is running.
Run MySQL safe daemon with skipping grant tables
sudo mysqld_safe --skip-grant-tables &
Login to MySQL as root with no password
sudo mysql -u root mysql
Run UPDATE query to reset the root password
UPDATE user SET authentication_string=PASSWORD("MyNewPassword") WHERE user="root";
FLUSH PRIVILEGES;
Stop MySQL safe daemon
sudo ps -ef | grep mysqld_safe
sudo kill -9 'pid' mysqld_safe
Start MySQL daemon
sudo /etc/init.d/mysql start
Privileges are flushed. Start MySQL and login as root with the password you reseted
sudo mysql -u root -p mysql
sudo mysql_secure_installation
and see if you'll be asked to put in a password . – George Udosen Dec 31 '16 at 06:25