Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabc committed Apr 11, 2018
1 parent 8e815a6 commit 771c3a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions shell/sqladvisor.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
## shell常用命令 2018-04-10
## Centos6下一键安装美团开源SQL优化工具SQLAdvisor脚本 2018-04-10
## http://www.aqzt.com
## email: [email protected]
## robert yu
## Centos6下一键安装美团开源SQL优化工具SQLAdvisor脚本
## Centos6

yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
yum install -y gcc-c++ make gcc httpd php mysql php-mysql php-devel php-pear libssh2 libssh2-devel unzip cmake libaio-devel libffi-devel glib2 glib2-devel Percona-Server-shared-56 bison libaio-devel ncurses-devel
Expand All @@ -14,9 +14,8 @@ ln -s /usr/lib64/libperconaserverclient_r.so.18 /usr/lib64/libperconaserverclien
unzip SQLAdvisor.zip
cd SQLAdvisor-master
if [ -f CMakeCache.txt ];then
echo ${line}
rm -rf CMakeCache.txt
fi
rm -rf CMakeCache.txt
cmake -DBUILD_CONFIG=mysql_release -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/usr/local/sqlparser ./
make && make install

Expand Down

0 comments on commit 771c3a5

Please sign in to comment.