What to do if you forget your Linux/Mac MySQL password? Don't worry, here's how to change your password using the command line. All prerequisites require root permissions 1. End the mysql process //Linux sudo services mysql stop //Mac brew services stop mysql 2.mysql background running mysqld_safe --skip-grant-tables & mysql &, means running in the background without opening a new terminal 3. Change password use mysql; update user set password = password("new password") where user='root'; flush privileges; Knowing the original password Use the mysqladmin command on the command line mysqladmin -u root -p oldpassword "newpassword" Or you can enter the MySQL database and modify it directly, refer to the third step above [Change Password] The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Native js to implement 2048 game
>>: Realization of real-time file synchronization between Linux servers
After a lot of trouble, I finally figured out the...
MySQL 5.0 has become a classic because of its few...
Implementation principle The main graphics are co...
Preface Since MySQL 5.1.6, a very unique feature ...
1. Request answer interface 2. Determine whether ...
Table of contents background Understanding compos...
Table of contents 1. What is block scope? 2. Why ...
1. Two words at the beginning Hello everyone, my ...
HTML style tag style tag - Use this tag when decl...
Occasionally you'll see characters such as ...
<br />Yesterday I saw at W3C that the new HT...
Inside the style tag of the vue component, there ...
When we want to add a shadow to a rectangle or ot...
#include <asm/io.h> #define ioremap(cookie,...
Table of contents 1. Implicit conversion Conversi...