Home >Database >Mysql Tutorial >VPS下修改MySQL root用户密码的方法_MySQL

VPS下修改MySQL root用户密码的方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:20:371145browse

bitsCN.com 1、首先停止正在运行的MySQL进程
Linux下,运行 killall -TERM mysqld
Windows下,如果写成服务的 可以运行:net stop mysql,如未加载为服务,可直接在进程管理器中进行关闭。

2、以安全模式启动MySQL
Linux下,运行 /usr/local/mysql/bin/mysqld_safe

Statement:
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