[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