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
First look at the effect: When the mouse moves ov...
In daily work, we sometimes run slow queries to r...
In this article, we will learn about the optimiza...
Related knowledge points Passing values from pa...
Table of contents 1. Download steps 2. Configure ...
How to achieve internationalization in React? The...
1. Enter the container docker run [option] image ...
After nginx is compiled and installed and used fo...
Phenomenon Start the Docker container docker run ...
The Nginx ngx_http_image_filter_module module (ng...
Three functions: 1. Automatic vertical centering o...
The correspondence between tensorflow version and...
Chapter 1: Introduction to keepalived The purpose...
nginx version 1.11.3 Using the following configur...
Problem description: The user has a requirement t...