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
500 (Internal Server Error) The server encountere...
The operating environment of this tutorial: Windo...
Table of contents 1. Get to know Teleport 2. Basi...
First, let's talk about the in() query. It is...
1. Add a hard disk 2. Check the partition status:...
1. Storage Engine In the last section, we mention...
I have been playing around with charts for a whil...
Today, let’s discuss an interesting topic: How mu...
When building a website, HTML language may seem un...
MySQL installation instructions MySQL is a relati...
This section starts with the details of text modi...
Table of contents Preface 1. Basic knowledge of f...
Non-orthogonal margins When margin is used, it wi...
Scenario Yesterday the system automatically backe...
Code <div class="test"> <div&g...