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

Use Xshell to connect to the Linux virtual machine on VMware (graphic steps)

Preface: I recently started to study the construc...

CentOS7 64-bit installation mysql graphic tutorial

Prerequisites for installing MySQL: Install CentO...

MySQL 8.0.19 installation and configuration method graphic tutorial

This article records the installation and configu...

Vue uses element-ui to implement menu navigation

This article shares the specific code of Vue usin...

Enterprise-level installation tutorial using LAMP source code

Table of contents LAMP architecture 1.Lamp Introd...

Vue mobile terminal realizes finger sliding effect

This article example shares the specific code for...

How to start the spring-boot project using the built-in linux system in win10

1. Install the built-in Linux subsystem of win10 ...

Detailed steps to install mysql5.7.18 on Mac

1. Tools We need two tools now: MySQL server (mys...

Implementation steps of vue-element-admin to build a backend management system

Recently, when I was working on a conference heal...

How to configure jdk environment under Linux

1. Go to the official website to download the jdk...

MySQL Server 8.0.13.0 Installation Tutorial with Pictures and Text

Install 8.0.13 based on MySQL 6.1.3. MySQL 8.0.13...

MySQL stored procedure method example of returning multiple values

This article uses an example to describe how to r...

JS interview question: Can forEach jump out of the loop?

When I was asked this question, I was ignorant an...