Home > Database > Mysql Tutorial > 教你如何正确重装MySQL数据库

教你如何正确重装MySQL数据库

WBOY
Release: 2016-06-07 16:51:56
Original
2737 people have browsed it

1 卸除原来的MySQL数据库2 重起电脑;3 在windows下:打开命令行窗口,停止MySQL服务: Net stop mysql启动MySQL,一般到MySQL的安

1 卸除原来的MySQL数据库

2 重起电脑;

3 在windows下:
打开命令行窗口,,停止MySQL服务: Net stop mysql
启动MySQL,一般到MySQL的安装路径,找到 mysqld-nt.exe
执行:mysqld-nt --skip-grant-tables 当前窗口将会停止。
另外打开一个命令行窗口,执行MySQL如果提示没有这个命令,先进入MYSQL的安装位置下BIN目录再运行MySQL
>use mysql
>update user set password=password("new_password") where user="root";
>flush privileges;
>exit 

linux

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