If your computer is a Mac, using homebrew to install MySQL is a very convenient way, but there are still some problems; First, make sure you have installed MySQL. If you installed it via homebrew, type If you enter mysql -u root This error ERROR 1045 (28000): Access denied for user 'zhongchengming'@'localhost' (using password: YES) appears. It should be that the initial password was not successfully changed. Solution steps (1) Enter mysqld_safe --skip-grant-tables in the terminal and the following is displayed: 2017-03-21T11:44:11.6NZ mysqld_safe Logging to '/usr/local/var/mysql/zhongchengmingdeMacBook-Air.local.err'. (2) Enter mysql -u root again and the following is displayed Welcome to the MySQL monitor. Commands end with ; or \g. (3) Enter use mysql in the terminal and the following is displayed Reading table information for completion of table and column names (4) Change password Success Query OK, 1 row affected, 1 warning (0.05 sec) Rows matched: 1 Changed: 1 Warnings: 1 The above is what I introduced to you about solving the problem of not being able to log in when installing MySQL on Mac using homebrew. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Configure VIM as a C++ development editor in Ubuntu
Today, I encountered a problem: the content in the...
The following error message appears when installi...
Note: This article has been translated by someone ...
Preface In practice, we may encounter such a prob...
Table of contents Preface application Filters Dra...
1. Video tag Supports automatic playback in Firef...
Shtml and asp are similar. In files named shtml, s...
This article shares the specific code of the WeCh...
Most of the commands below need to be entered in ...
This article uses examples to describe common bas...
Table of contents 1. Picture above 2. User does n...
This article describes various ways to implement ...
After the user logs out, if the back button on the...
This article shares the specific code of JavaScri...
The filter attribute defines the visual effect of...