mysql change password command

When installing mysql, you can customize the password. In order to keep it simple and easy to remember, I set it to 123456, but when the code down from svn is running, it is designed to operate on database data, and the console will report an error, that is, there is no permission problem. Because I have a different password with the company server, although I am linking to the local database. Had to change the mysql password.
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('654321'); Fill in the password you want to change

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326741535&siteId=291194637