इसे आजमाएं:
mysql -u root -h 127.0.0.1 -p
Enter password: (enter the random password here)
संदर्भ:https://dev.mysql .com/doc/refman/5.7/hi/data-directory-initialization-mysqld.html
इसके बाद, आप ALTER USER 'root'@'localhost' IDENTIFIED BY 'new-password';