博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
修改MySQL数据库密码
阅读量:3906 次
发布时间:2019-05-23

本文共 290 字,大约阅读时间需要 1 分钟。

第一种方法 

进入cmd 

按Windows+x键  点击windows PwerShell进入cmd

mysqladmin -u root -p password 新密码

Enter password: 输入你的旧密码

例如下面这样

我这里设置的新密码是123456

第二种方法是

先进入 数据库

use mysql;

update use set authentication_string = password('123456') where use = 'root' and Host = 'localhost';

这里新密码依旧是123456  用时候只需要更换123456即可

你可能感兴趣的文章
Python yield and iterables
查看>>
Python string find
查看>>
del Statement
查看>>
Python Dict all
查看>>
Python Rate Limiter
查看>>
Python list to string
查看>>
Python list dict iteration
查看>>
Linux basic knowledge
查看>>
Difference Between Hard & Soft Links
查看>>
Linux Hard link and Symbolic link
查看>>
Hard Link Vs Soft Link
查看>>
redis brief intro
查看>>
mongo db brief intro
查看>>
Kafka basic intro
查看>>
Python multiprocessing
查看>>
Python urlib vs urlib2
查看>>
Python producer & consumer
查看>>
Queue.Queue vs collections.deque
查看>>
Python condition
查看>>
Python Lib Queue.py
查看>>