【MAC】Mac下配置perl的DBD::MySQL模块

1.概述

pt-variable-advisor是pt工具集的一个子工具,主要用来诊断你的参数设置是否合理。我想运行这个结果报错如下

(base) lcc@lcc percona-toolkit-3.2.0$ bin/pt-variable-advisor localhost --socket /var/lib/mysql/mysql.sock
Cannot connect to MySQL because the Perl DBD::mysql module is not installed or not found.  Run 'perl -MDBD::mysql' to see the directories that Perl searches for DBD::mysql.  If DBD::mysql is not installed, try:
  Debian/Ubuntu  apt-get install libdbd-mysql-perl
  RHEL/CentOS    yum 

你可能感兴趣的:(系统-mac苹果电脑)