Home > Database > Mysql Tutorial > body text

mariadb和mysql忘记密码怎么办_MySQL

WBOY
Release: 2016-06-01 13:08:21
Original
978 people have browsed it

MariaDB

linux环境中:/etc/my.cnf

在[mysqld]配置段添加如下一行:
skip-grant-tables

保存退出编辑。
update user set password=PASSWORD("123456") where user='root';

flush privileges

密码已经改好了。
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!