1.download:
解压:tar zxvf
2.DBI安装:
yum -y install perl-DBI
3.如下问题解决:DBI connect('host=localhost','root',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at mysqlreport line 249
Died at mysqlreport line 249.
删除 /var/lib/mysql/mysql.sock
在/var/lib/mysql/建了一个link
ln -s /tmp/mysql.sock mysql.sock
暂时解决问题
使用:
perl mysqlreport --user=root --password=xxxxxx --socket=/tmp/mysql.sock --outfile=/home/mysqlreport.txt
阅读(2098) | 评论(0) | 转发(0) |