Lines Matching refs:query
21 if (!($res = $link->query("SHOW PLUGINS"))) {
35 if (!($res = $link->query("SHOW STATUS LIKE 'Rsa_public_key'"))) {
48 $link->query("SET @@session.old_passwords=2");
50 $link->query('DROP USER shatest');
51 $link->query("DROP USER shatest@localhost");
54 if (!$link->query('CREATE USER shatest@"%" IDENTIFIED WITH sha256_password') ||
55 !$link->query('CREATE USER shatest@"localhost" IDENTIFIED WITH sha256_password')) {
59 if (!$link->query('SET PASSWORD FOR shatest@"%" = "shatest"') ||
60 !$link->query('SET PASSWORD FOR shatest@"localhost" = "shatest"')) {
64 if (!$link->query("DROP TABLE IF EXISTS test") ||
65 !$link->query("CREATE TABLE test (id INT)") ||
66 !$link->query("INSERT INTO test(id) VALUES (1), (2), (3)"))
70 if (!$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'%%'", $db)) ||
71 !$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'localhost'", $db))) {
87 if (!$res = $link->query("SELECT id FROM test WHERE id = 1"))
107 $link->query('DROP USER shatest');
108 $link->query('DROP USER shatest@localhost');