Lines Matching refs:query
21 if (!($res = $link->query("SHOW PLUGINS"))) {
35 if (!($res = $link->query("SHOW STATUS LIKE 'Rsa_public_key'"))) {
60 $link->query("SET @@session.old_passwords=2");
62 $link->query('DROP USER shatest');
63 $link->query("DROP USER shatest@localhost");
66 if (!$link->query('CREATE USER shatest@"%" IDENTIFIED WITH sha256_password') ||
67 !$link->query('CREATE USER shatest@"localhost" IDENTIFIED WITH sha256_password')) {
71 if (!$link->query('SET PASSWORD FOR shatest@"%" = "shatest"') ||
72 !$link->query('SET PASSWORD FOR shatest@"localhost" = "shatest"')) {
76 if (!$link->query("DROP TABLE IF EXISTS test") ||
77 !$link->query("CREATE TABLE test (id INT)") ||
78 !$link->query("INSERT INTO test(id) VALUES (1), (2), (3)"))
82 if (!$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'%%'", $db)) ||
83 !$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'localhost'", $db))) {
101 if (!$res = $link->query("SELECT id FROM test WHERE id = 1"))
117 $link->query('DROP USER shatest');
118 $link->query('DROP USER shatest@localhost');