#!/bin/bash
# author by poweryingzi
# data 2012.03.24
# use mysql query
# edit by www.jb200.com
#
USER=root
PASSWD=123456
HOST=192.168.10.123
LOGPATH=`pwd`/query.log
QUERY=`mysql -h$HOST -u$USER -p$PASSWD <<EOF
use
wordpress;
select * from wp_users where user_login = 'admin';
exit
EOF