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
As more and more Docker images are used, there ne...
1. Introduction to Animate.css Animate.css is a r...
About CSS3 variables When declaring a variable, a...
Table of contents Preface Child components pass d...
The overall architecture of MySQL is divided into...
01 Winter Flakes (Individual only) 02 Snowtop Cap...
Download tutorial of mysql-connector-java.jar pac...
Table of contents 3 ways to deploy projects with ...
The program is executed sequentially from top to ...
Pre-installation preparation The main purpose of ...
From the tomcat configuration file, we can see th...
This article shares the installation and configur...
use Flexible boxes play a vital role in front-end...
1. System installation package yum -y install mak...
tcpdump is a flexible and powerful packet capture...