---
title: "mysql改root密码"
author: "Tracylau"
date: "2006-05-25T21:37:54Z"
tags: ["MySQL"]
slug: "mysql-root"
draft: false
lastmod: "2006-05-25T21:37:54Z"
id: 23956
url: "https://tracylau.iteye.com/blog/23956"
---

use mysql 
update user set Password=password('newpassword') where User='root'; 
flush privileges;