Home > Database > Mysql Tutorial > Debian下重建MySQL数据库

Debian下重建MySQL数据库

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:41:36
Original
1365 people have browsed it

经常由于折腾,数据库损坏了或者密码丢了,可以重建一下数据库: service mysql stop rm -rf /var/lib/mysql mysql_install_db service mysql start mysqladmin -uroot -p password 然后输入密码 本文出自:http://blog.friskit.me/, 原文地址:http://blog.

经常由于折腾,数据库损坏了或者密码丢了,可以重建一下数据库:

service mysql stop  
rm -rf /var/lib/mysql  
mysql_install_db  
service mysql start  
mysqladmin -uroot -p password  
Copy after login

然后输入密码

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
Latest Issues
debian - bash configuration for new linux users
From 1970-01-01 08:00:00
0
0
0
debian - Do I need to create a .vim folder?
From 1970-01-01 08:00:00
0
0
0
Can .vimrc .viminfo files be moved?
From 1970-01-01 08:00:00
0
0
0
git completion error in bash
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template