The first method: Use Junge's one-click script to modify the MYSQL database password in the LNMP environment One-click scripts are certainly very convenient. Specifically execute the following commands: wget http://soft.vpser.net/lnmp/ext/reset_mysql_root_password.sh sh reset_mysql_root_password.sh Convenient, right? The second method: Modify through commands, as follows: a. Stop MySQL service Execute: /etc/init.d/mysql stop b. Skip verification and start MySQL /usr/local/mysql/bin/mysqld_safe –skip-grant-tables >/dev/null 2>&1 & Then: mysql mysql -uroot //Login to mysql> UPDATE user SET Password=PASSWORD('new password') where USER='root'; mysql> FLUSH PRIVILEGES; mysql> quit Then restart mysql /etc/init.d/mysql start Summarize The above are two methods that I introduced to you about how to use lnmp to reset the root password of the MySQL database. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: How to configure two-way certificate verification on nginx proxy server
>>: Analysis of Vue element background authentication process
1. v-on event monitoring To listen to DOM events,...
Like means "like" in Chinese, but when ...
Table of contents Overview Code Implementation Si...
Table of contents Preface 1. Install NJS module M...
MySQL 8 new features: My personal opinion on MySQ...
Table of contents Project Directory Dockerfile Fi...
Table of contents Create a table View the databas...
The purpose of using cache is to reduce the press...
Table of contents Preface Active withdrawal Excep...
1. Python installation 1. Create a folder. mkdir ...
<br />The frame structure allows several web...
Written in front When we operate the database in ...
Sometimes when requesting certain interfaces, you...
Nowadays, application development is basically se...
Table of contents JavaScript function call classi...