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
Before talking about CSS priority, we need to und...
<br />Yesterday I saw at W3C that the new HT...
Table of contents 1. Introduction 2. Implementati...
Let's make a simple 3D Rubik's Cube today...
This article example shares the specific code of ...
This article shares a sharing sidebar implemented...
the difference: 1. InnoDB supports transactions, ...
border-radius:10px; /* All corners are rounded wi...
sftp is the abbreviation of Secure File Transfer ...
error message: ERROR 2002 (HY000): Can't conn...
This article shares the specific code of JavaScri...
Ubuntu 20.04 has been officially released in Apri...
1. Division of labor and process <br />At T...
Table of contents 1. Use the warehouse to create ...
Table of contents v-model .sync The difference in...