1.可以先用 whereis mysql 然后一个一个翻目录看bin目录在哪个下面(如果自己知道就不需要找)。 2.使用 ln -s /自己的bin目录路径/mysqlbinlog mysqlbinlog 命令映射即可