Problems and solutions for MYSQL5.7.17 connection failure under MAC

Problems and solutions for MYSQL5.7.17 connection failure under MAC

The problem that MYSQL5.7.17 cannot connect under MAC. After downloading and installing SQLBench_community 6.3.9, the new MYSQL CONNECTIONS cannot connect at all, and it prompts that the password is wrong.

The specific manifestation is: Access denied for user 'root'@'localhost' (using password: YES)

Step 1:

Apple->System Preferences->Click MySQL at the bottom. In the pop-up page, turn off the MySQL service (click stop MySQL server);

Step2:

Enter the terminal and enter: cd /usr/local/mysql/bin/

After pressing Enter, log in with administrator privileges sudo su

After pressing Enter, enter the following command to disable the mysql authentication function./mysqld_safe --skip-grant-tables &

After pressing Enter, MySQL will automatically restart (the status of MySQL in the preferences will become running)

Step 3:

Enter the command ./mysql

After pressing Enter, enter the command FLUSH PRIVILEGES;

After pressing Enter, enter the command SET PASSWORD FOR 'root'@'localhost' = PASSWORD('your new password');

At this point, the password change is complete and you can log in successfully.

The above is the problem and solution of MYSQL5.7.17 not being able to connect under MAC introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor 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:
  • Complete steps to install mysql5.7 on Mac (with pictures and text)
  • How to install and uninstall MySQL 5.7.11 on Mac
  • How to install the latest 5.7.9mysql on mac OS X10.10
  • MySQL 5.7.12 installation and configuration tutorial under Mac OS 10.11
  • MySQL 5.7.13 Installation and Configuration Notes (Mac OS)
  • How to change the root password of Mysql5.7.10 on MAC
  • Solution to forgetting the root password of MySQL5.7 on Mac
  • MySQL 5.7.17 installation and configuration tutorial for Mac
  • Tutorial on installing mysql5.7.18 on mac os10.12
  • mysql5.7.20 installation and configuration method graphic tutorial (mac)

<<:  Javascript to achieve the effect of closing advertisements

>>:  How to implement Docker container self-start

Recommend

Optimization analysis of Limit query in MySQL optimization techniques

Preface In actual business, paging is a common bu...

IE9beta version browser supports HTML5/CSS3

Some people say that IE9 is Microsoft's secon...

Things to note when designing web pages for small-screen mobile devices

The reason is that this type of web page originate...

A little-known JS problem: [] == ![] is true, but {} == !{} is false

console.log( [] == ![] ) // true console.log( {} ...

Summary of Git commit log modification methods

Case 1: Last submission and no push Execute the f...

MySQL data duplicate checking and deduplication implementation statements

There is a table user, and the fields are id, nic...

MySQL database table partitioning considerations [recommended]

Table partitioning is different from database par...

Implementation of docker view container log command

Why should we read the log? For example, if the c...

mysql charset=utf8 do you really understand what it means

1. Let's look at a table creation statement f...

Analyze the method of prometheus+grafana monitoring nginx

Table of contents 1. Download 2. Install nginx an...

Docker Compose one-click ELK deployment method implementation

Install Filebeat has completely replaced Logstash...

WeChat applet implements form verification

WeChat applet form validation, for your reference...