Skip to content

Commit f3b2fb6

Browse files
authored
Update mysql_oltp_test.sh
1 parent fddc8ca commit f3b2fb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysql_oltp_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ EOF
8282
load=$(ssh -p22 $4 "uptime|awk -F: '{print \$NF}'|awk -F, '{print \$1}'" 2>/dev/null)
8383

8484
#本次测试结果写入数据库
85-
mysql -u$m_user -p$m_passwd -P$m_port -h$m_host <<EOF 2> $log
85+
mysql -u$m_user -p$m_passwd -P$m_port -h$m_host <<EOF
8686
INSERT INTO $m_db.$m_table (scenario,server_name,test_type,sb_threads,server_load,request_read,
8787
request_write,request_total,request_per_second,total_time,95_pct_time)
8888
VALUES ('$2','$4','$3','$sb_threds','$load',$result);
@@ -101,7 +101,7 @@ EOF
101101

102102
#结果分析函数
103103
sb_analyse() {
104-
mysql -u$m_user -p$m_passwd -h$m_host -P$m_port <<EOF 2>$log
104+
mysql -u$m_user -p$m_passwd -h$m_host -P$m_port <<EOF 2>&1|grep -v 'password on the command line'
105105
SELECT
106106
scenario,
107107
server_name,

0 commit comments

Comments
 (0)