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
There is a task process on the server. When we us...
1. Install mysql Run the following command to upd...
Achieve resultsImplementation Code html <div&g...
<> Operator Function: Indicates not equal t...
Copy code The code is as follows: <!-- Prevent...
Let’s not start with the introduction and get str...
Execute the create table statement in the databas...
VMware Preparation CentOS preparation, here is Ce...
Table of contents 1 What is SSH 2 Configure SSH p...
1. Download the tomcat image docker pull tomcat:8...
introduction Xiao A was writing code, and DBA Xia...
This article records the installation tutorial of...
When making forms, we often encounter the situati...
1.service command The service command actually go...
Preface When we use query statements, we often ne...