Method 1: Use the SET PASSWORD command First log in to MySQL. Format: mysql> set password for username@localhost = password('new password'); Example:mysql> set password for root@localhost = password('123'); Method 2: Using mysqladmin Format: mysqladmin -u username -p old password password new password Example: mysqladmin -uroot -p123456 password 123 Method 3: Use UPDATE to edit the user table directly First log in to MySQL. mysql> use mysql; mysql> update user set password=password('123') where user='root' and host='localhost'; mysql> flush privileges; Method 4: When you forget the root password, you can do this Take Windows as an example: 1. Shut down the running MySQL service. Summarize The above are the various methods that I introduced to you about how to modify the MySQL database password using Navicat. 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! You may also be interested in:
|
<<: React Native environment installation process
>>: How to configure common software on Linux
1. Problem Description Today I need to check the ...
Table of contents Preface Understanding a stack a...
1. Purpose: Make the code easier to maintain and ...
Table of contents 1. Test environment 1.1 Hardwar...
1. Requirements description For a certain element...
This article is based on Linux centos8 to install...
Three MySQL instance processes are started on one...
The methods and concepts of private filters and g...
The downloaded version is the Zip decompression v...
add -it docker run -it -name test -d nginx:latest...
Table of contents 1. What is a trigger? 2. Create...
background As the company's sub-projects incr...
nginx is our most commonly used server, often use...
This article example shares the specific code of ...
The Linux command to run the jar package is as fo...