Lines Matching refs:query
23 if (!($res = $link->query("SHOW PLUGINS"))) {
37 if (!($res = $link->query("SHOW STATUS LIKE 'Rsa_public_key'"))) {
59 if (!$link->query("SET @@session.old_passwords=2")) {
63 $link->query('DROP USER shatest');
64 $link->query("DROP USER shatest@localhost");
67 if (!$link->query('CREATE USER shatest@"%" IDENTIFIED WITH sha256_password') ||
68 !$link->query('CREATE USER shatest@"localhost" IDENTIFIED WITH sha256_password')) {
72 if (!$link->query('SET PASSWORD FOR shatest@"%" = PASSWORD("shatest")') ||
73 !$link->query('SET PASSWORD FOR shatest@"localhost" = PASSWORD("shatest")')) {
77 if (!$link->query("DROP TABLE IF EXISTS test") ||
78 !$link->query("CREATE TABLE test (id INT)") ||
79 !$link->query("INSERT INTO test(id) VALUES (1), (2), (3)"))
83 if (!$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'%%'", $db)) ||
84 !$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'localhost'", $db))) {
106 if (!$res = $link->query("SELECT id FROM test WHERE id = 1"))
126 $link->query('DROP USER shatest');
127 $link->query('DROP USER shatest@localhost');