---
title: "MYSQL ERROR 1045 错误的解决办法 "
author: "oakeye"
date: "2010-02-23T11:27:21Z"
tags: []
categories: ["数据库"]
slug: "mysql-error-1045"
draft: false
lastmod: "2010-02-23T11:27:21Z"
id: 600611
url: "https://oakeye.iteye.com/blog/600611"
---

谈谈MYSQL ERROR 1045 错误的解决办法 
1、mysql -u root

2、use mysql

3、update user set password=old_password('scf') where user='root' and host='localhost' ;

4、FLUSH PRIVILEGES;