博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
修改mysql密码
阅读量:4595 次
发布时间:2019-06-09

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

1、首先启动mysqld,无授权验证模式,为了安全,将监听地址bind在localhost
cmd>mysqld --skip-grant-tables --bind-address=localhost
2、运行mysql
cmd>mysqlWelcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 1Server version: 5.0.90-community-nt MySQL Community Edition (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> use mysql;mysql> select host, user, password from user;+-----------+------+-------------------------------------------+| host      | user | password                                  |+-----------+------+-------------------------------------------+| localhost | root | *41DDB5DFD213B288EE050BD64DC6AA36815A3486 |+-----------+------+-------------------------------------------+1 row in set (0.00 sec)mysql> UPDATE user SET password=password('888') WHERE user='root';Query OK, 0 rows affected (0.00 sec)Rows matched: 1  Changed: 0  Warnings: 0mysql> flush privileges;Query OK, 0 rows affected (0.13 sec)mysql> quit;Byecmd>

转载于:https://www.cnblogs.com/xkxjy/archive/2013/02/24/3672264.html

你可能感兴趣的文章
Oracle PL/SQL编程之过程
查看>>
Spring(三)--Spring bean的生命周期
查看>>
TextClock的基本使用
查看>>
.NET技术
查看>>
listview图片错位
查看>>
Python-hashlib模块
查看>>
SP348 EXPEDI - Expedition
查看>>
全栈工程师之路——服务器端自动部署
查看>>
SequoiaDB 系列之七 :源码分析之catalog节点
查看>>
javascript高级函数
查看>>
scrollTop是什么及用法说明
查看>>
Solr集群的搭建
查看>>
【动态树】uva11994 Happy Painting!
查看>>
C# WinForm 文件上传下载
查看>>
ASP.NET MVC3 快速入门-第三节 添加一个视图
查看>>
【linux C】C语言中常用的几个函数的总结【三】
查看>>
一些使用Android设备调试功能的注意事项(挖职位)
查看>>
花指令
查看>>
layoutSubviews总结
查看>>
字节流(笔记)
查看>>