Home > Database > Mysql Tutorial > body text

mysql下修改用户root的密码简析_MySQL

WBOY
Release: 2016-06-01 13:42:31
Original
987 people have browsed it

bitsCN.com
1.关闭正在运行的MySQL,具体方式:手工从管理工具服务中停止mysql服务;或者cmd进入doc窗口,输入net stop mysql2.转到 安装目录,比如C:/Program Files/MySQL/MySQL Server 5.0/bin目录。 3.输入mysqld-nt   --skip-grant-tables回车。如果没有出现提示信息,那就对了。 4.再 开一个DOS窗口(因为刚才那个DOS窗口已经不能动了),转到mysql/bin目录。 5.输入mysql回车,如果成 功,将出现MySQL提示符 > 6. 连接权限数据库>use mysql; (>是本来就有的提示符,别忘了最后的分号) 6.改密码:> update user set password=password('123456') where user='root'; (别忘了最后的分号)    7.刷新权限(必须 的步骤)>flush privileges; 8.退出 > quit;9.注销系统,再进入,开MySQL,使用用户名 root和刚才设置的新密码123456登陆。   摘自 lisa0220的专栏 bitsCN.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!