Linux command--resolve ln-s soft link generation too many levels of symbolic links error __linux

Source: Internet
Author: User

[Reprint] http://blog.sina.com.cn/s/blog_6e00b3310101fh01.html error Too many levels of symbolic links

Today in the installation of MySQL software, the Mysql/bin directory with Ln-s mysql/usr/local/bin/mysql to create a soft connection, and later enable MySQL error pop-up:
-bash:/usr/local/bin/mysql:too Many levels of symbolic links
Looking for a reason from the Internet, the original is to establish a soft connection when using a relative path, it will produce such a mistake, the solution is to use absolute path to establish soft links:
Ln-s/usr/. /mysql/bin/mysql/usr/local/bin/mysql
That will solve the problem.
It's OK to enable MySQL again. error ln:failed to create symbolic link Operation not supported

ln:failed to create symbolic link '/usr/local/bin/mysql ': Operation not supported
The workaround is to delete the original symbolic link and recreate it:
Rm-rf/usr/local/bin/mysql
Ln-s/usr/. /mysql/bin/mysql/usr/local/bin/mysql

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.