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
In MySQL, you can specify multiple indexes for a ...
Table of contents 1. Pull the Redis image 2. Crea...
We don't need to elaborate too much on the ad...
This article mainly introduces how some content i...
【1】<i></i> and <em></em> ...
1. Solution 1.1 Describing the interface context-...
What? What star coat? Well, let’s look at the pic...
Table of contents 1. Overview 2. nginx.conf 1) Co...
Hyperlinks are the most frequently used HTML elem...
This article uses examples to illustrate the diff...
1. Introduction to nmon Nmon (Nigel's Monitor...
This article shares the specific code of JavaScri...
Core code /*-------------------------------- Find...
Table of contents What is ref How to use ref Plac...
You can have the best visual design skills in the...