Lines Matching refs:query
23 if (!($res = $link->query("SHOW PLUGINS"))) {
37 if (!($res = $link->query("SHOW STATUS LIKE 'Rsa_public_key'"))) {
50 $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@"%" = "shatest"') ||
62 !$link->query('SET PASSWORD FOR shatest@"localhost" = "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))) {
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');