CentOS 7

How To Change Mysql Root Password

Share on LinkedIn

To change or update the root mysql user password from thispw, you can set the new password to thatpw by running this command:

mysqladmin -u root -p'thispw' password 'thatpw'

That’s it.