In this article, we will see how to change MySQL root password in Linux. We can change the password with multiple methods, below are the few of them.
1. Update root user password using SET method:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD("admin@123"); flush privileges;