These are the quick steps you can proceed to reset the
Happy coding!
mysql password in Linux or Unix.Stop the mysql serverCreate a file in /tmp with filename:mysql-initwith the content as below:- Execute the below command to start the MySQL with the new paasword
mysqld_safe --init-file=/tmp/mysql-init & - After the server has started successfully, delete
/tmp/mysql-init. - Now try to log-in to MySQL with the new password.
UPDATE mysql.user SET Password=PASSWORD('80odP@s5') WHERE User='root';
FLUSH PRIVILEGES;
Happy coding!
No comments:
Post a Comment