Terminal mysql Operation not permitted error solution, mysqlpermitted

Source: Internet
Author: User

Terminal mysql Operation not permitted error solution, mysqlpermitted

I. background

Some time ago when I installed mysql, I encounteredLn:/usr/bin/mysql: Operation not permittedMany methods on the Internet are outdated. below is my solution

Run

Sudo ln-s/usr/local/mysql/bin/mysql/usr/bin

The following error is reported.

Mysql Operation not permitted

 

Ii. Cause

This is because the SIP feature introduced by Apple in OS X 10.11 makes it impossible to modify the system-level directory even if sudo (with root permission) is added, including/usr/bin. There are two ways to solve this problem:

One of the most insecure features is to disable the SIP, that is, the rootless feature;

Another method is to link the link to/usr/bin to/usr/local/bin.

Iii. Solution

Sudo ln-s/usr/local/mysql/bin/mysql/usr/local/bin

 

Thank you!

Related Article

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.