Home > Database > Mysql Tutorial > body text

MySQL root用户密码重置_MySQL

WBOY
Release: 2016-06-01 13:39:17
Original
984 people have browsed it

bitsCN.com
MySQL root用户密码重置 1、首先停止正在运行的MySQL进程Linux下,运行 killall -TERM MySQLd Windows下,如果写成服务的 可以运行:net stop MySQL,如未加载为服务,可直接在进程管理器中进行关闭。   2、以安全模式启动MySQL Linux下,运行 /usr/local/mysql/bin/mysqld_safe --skip-grant-tables &Windows下,在命令行下运行 X:/MySQL/bin/mysqld-nt.exe --skip-grant-tables   3、完成以后就可以不用密码进入MySQL了
 Linux下,运行 /usr/local/mysql/bin/mysql -u root -p 进入 Windows下,运行 X:/MySQL/bin/mysql -u root -p 进入   4、更改MySQL数据库密码[sql]>use mysql[sql]>update user set password=password("new_pass") where user="root";   [sql]>flush privileges;      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