Đã đăng: 2 năm
Open and edit /etc/my.cnf or /etc/mysql/my.cnf, depending on your distribution.
Add
skip-grant-tables under [mysqld]
Restart MySQL
You should be able to log in to MySQL now using the below command mysql -u root -p
Run mysql>
flush privileges;
Set new password by
ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword';
Go back to /etc/my.cnf and remove/comment skip-grant-tables
Restart MySQL
Now you will be able to login with the new password mysql -u root -p
Chia sẻ trên dòng thời gian

Thủ Thuật Hay Đã tham gia: 7 năm

Đã đăng: 2 năm
đã sửa lỗi ok

Decker Bradley Đã tham gia: 45 giờ

Đã đăng: 12 giờ
The substance of the essay is intriguing; I value how well the topic is covered, and I really hope that your work receives geometry dash a lot of attention.

Manning Bennie Đã tham gia: 10 giờ

Đã đăng: 10 giờ
It was a really helpful and very informative blog. It really helps me a lot but if you want to also learn only up something new and interesting.

john cena Đã tham gia: 17 giờ

Đã đăng: 6 giờ
If you want to enjoy the company of a beautiful Call Girls in Goa without spending a fortune, then you should definitely consider hiring a Goa Escorts . Prices for these services vary depending on the escort's level of experience and looks, but you can expect to pay anywhere from Rs. 2000 to Rs. 10,000 for an hour of her time. Of course, the more you're willing to spend, the better the quality of escort you'll be able to book.