summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fec8900)
raw | patch | inline | side by side (parent: fec8900)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 1 Feb 2006 13:23:38 +0000 (13:23 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 1 Feb 2006 13:23:38 +0000 (13:23 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1315 f882894a-f735-0410-b71e-b25c423dba1c
plugins/t/check_mysql_query.t | patch | blob | history |
index f4743b7bc2c42c0e0e9970e6ed59753792f16cb1..f78f07b85b575a3cf17f5113485cdba706330d03 100644 (file)
#
#
# These are the database permissions required for this test:
-# GRANT SELECT ON $db.* TO $user@$host INDENTIFIED BY '$password';
+# GRANT SELECT ON $db.* TO $user@$host IDENTIFIED BY '$password';
# Check with:
# mysql -u$user -p$password -h$host $db
cmp_ok( $result->return_code, '==', 3, "Missing query parmeter");
like( $result->output, "/Must specify a SQL query to run/", "Missing query error message");
-$result = NPTest->testCmd("./check_mysql_query -q 'SELECT 1+1' -H $mysqlserver -u dummy");
+$result = NPTest->testCmd("./check_mysql_query -q 'SELECT 1+1' -H $mysqlserver -u dummy -d mysql");
cmp_ok( $result->return_code, '==', 2, "Login failure");
like( $result->output, "/Access denied for user /", "Expected login failure message");