31,029
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 80: | Line 80: | ||
<source lang="sql"> | <source lang="sql"> | ||
mysql> UPDATE mysql.user SET Password = PASSWORD(' | mysql> UPDATE mysql.user SET Password = PASSWORD('anewpassword') WHERE User = 'root'; | ||
or on a more recent version | |||
mysql> SET PASSWORD FOR 'root@localhost' = PASSWORD('anewpassword'); | |||
</source> | |||
The to take the change into account. | |||
<source lang="sql"> | |||
mysql> FLUSH PRIVILEGES; | mysql> FLUSH PRIVILEGES; | ||
mysql> QUIT; | mysql> QUIT; | ||