Lines Matching refs:query
23 if (!($res = $link->query("SHOW PLUGINS"))) {
37 if (!($res = $link->query("SHOW STATUS LIKE 'Rsa_public_key'"))) {
49 if (!$link->query("SET @@session.old_passwords=2")) {
53 $link->query('DROP USER shatest');
54 $link->query("DROP USER shatest@localhost");
57 if (!$link->query('CREATE USER shatest@"%" IDENTIFIED WITH sha256_password') ||
58 !$link->query('CREATE USER shatest@"localhost" IDENTIFIED WITH sha256_password')) {
62 if (!$link->query('SET PASSWORD FOR shatest@"%" = PASSWORD("shatest")') ||
63 !$link->query('SET PASSWORD FOR shatest@"localhost" = PASSWORD("shatest")')) {
67 if (!$link->query("DROP TABLE IF EXISTS test") ||
68 !$link->query("CREATE TABLE test (id INT)") ||
69 !$link->query("INSERT INTO test(id) VALUES (1), (2), (3)"))
73 if (!$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'%%'", $db)) ||
74 !$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'localhost'", $db))) {
89 if (!$res = $link->query("SELECT id FROM test WHERE id = 1"))
109 $link->query('DROP USER shatest');
110 $link->query('DROP USER shatest@localhost');