Lines Matching refs:query
22 if (!($res = $link->query("SHOW PLUGINS"))) {
36 if (!($res = $link->query("SHOW STATUS LIKE 'Rsa_public_key'"))) {
48 if (!$link->query("SET @@session.old_passwords=2")) {
52 $link->query('DROP USER shatest');
53 $link->query("DROP USER shatest@localhost");
56 if (!$link->query('CREATE USER shatest@"%" IDENTIFIED WITH sha256_password') ||
57 !$link->query('CREATE USER shatest@"localhost" IDENTIFIED WITH sha256_password')) {
61 if (!$link->query('SET PASSWORD FOR shatest@"%" = PASSWORD("shatest")') ||
62 !$link->query('SET PASSWORD FOR shatest@"localhost" = PASSWORD("shatest")')) {
66 if (!$link->query("DROP TABLE IF EXISTS test") ||
67 !$link->query("CREATE TABLE test (id INT)") ||
68 !$link->query("INSERT INTO test(id) VALUES (1), (2), (3)"))
72 if (!$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'%%'", $db)) ||
73 !$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'localhost'", $db))) {
88 if (!$res = $link->query("SELECT id FROM test WHERE id = 1"))
108 $link->query('DROP USER shatest');
109 $link->query('DROP USER shatest@localhost');