Quick solution for forgetting MYSQL database password under Mac operating system 1. In System Preferences, stop the MYSQL service. 2. cd /usr/local/mysql-...../bin sudo ./mysqld_safe --skip-grant-tables 3. Log in to MySQL; mysql 4. Set the root user's password to blank; mysql> update mysql.user set password='' whereUser='root'; mysql> flush privileges; mysql> quit 5. Restart the MySQL service. 6. Add password mysql> mysqladmin -u root -p password 123 Change the password to 123 Another method from netizens: step1: Shut down the MySQL service: Apple->System Preferences->Click MySQL at the bottom. In the pop-up page, shut down the MySQL service (click Stop MySQL Server). step2: Enter the terminal and type: cd /usr/local/mysql/bin/ step3: Enter the command ./mysql After completing the above steps, the password has been changed successfully. Now you can use the newly set password to log in to MySQL. 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:
|
<<: Summary of event handling in Vue.js front-end framework
>>: Nginx reverse proxy configuration removes prefix
This article example shares the specific code for...
10.4.1 The difference between Frameset and Frame ...
1. System installation package yum -y install mak...
What you will learn 1. Software installation and ...
I recently discovered a pitfall in regular expres...
Table of contents 1. Where is the self-incremente...
pthread_create function Function Introduction pth...
1. Use of alias The alias command is used to set ...
1. Download cuda10.1: NVIDIA official website lin...
vertical-align attribute is mainly used to change...
The ogg process of a database produced some time ...
There are many tasks to be done in search engine o...
Before introducing the GROUP BY and HAVING clause...
To debug js code, you need to write debugger in t...
Carousel The main idea is: In the large container...