In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Next, let's learn how to forget the MYSQL database password under MAC. I believe you will benefit a lot after reading it. The text is not much in essence. I hope you want to forget the MYSQL database password under MAC.
A quick solution to the forgotten password of MYSQL database under Mac operating system
1. In system preferences, abort the MYSQL service.
2. Cd/usr/local/mysql-./bin
Sudo. / mysqld_safe--skip-grant-tables
3. Log in to MySQL
Mysql
4. Empty the password of the root user
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 password to 123
Another way for netizens:
Step1:
Turn off the mysql service: Apple-> system preferences-> the bottom point mysql closes the mysql service in the pop-up page (click stop mysql server)
Step2:
Enter terminal input: cd / usr/local/mysql/bin/
Log in to administrator permission sudo su after pressing enter.
Enter the following command to disable the mysql verification function. / mysqld_safe-- skip-grant-tables &
Mysql will restart automatically when you enter (the status of mysql will change to running in the preference setting)
Step3:
Enter the command. / mysql
After entering enter, enter the command FLUSH PRIVILEGES
Enter the command SET PASSWORD FOR 'root'@'localhost' = PASSWORD (' your new password')
After completing the above steps, the password has been changed successfully, and now you can log in to mysql with the newly set password. Let's give it a try.
After reading this article on how to forget your MYSQL database password under MAC, many readers will want to know more about it. If you need more industry information, you can follow our industry information section.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.