Configure MySQL summary under Mac

Source: Internet
Author: User
Tags safe mode

Error 1045 when using MySQL under Mac (28000): Access denied for user ' root ' @ ' localhost ' (using password:no) errors

Root user can not log in, according to the method of the online test, always reach the results

The approximate method is to boot into safe mode and then

Workaround:

To start mysq in Safe mode:
/usr/bin/safe_mysqld--skip-grant-tables &

>use MySQL
>update User Set Password=password ("New_pass") where user= "root";
>flush privileges;

Note that to use Password=password ("New_pass"), you cannot use password= ' new_pass ' directly, otherwise you will reject the connection in the new version of MySQL.

Many articles are not the last sentence, so I have to follow the way to go, so the exit security mode always solve the problem, password function is critical, set up to check the discovery password is encrypted, so you write in clear text, the system according to the encryption read, the result is never wrong

Configure MySQL summary under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.