Lines Matching refs:mysqli
2 mysqli->change_user()
24 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
28 if (!is_null($tmp = @$mysqli->change_user()))
31 if (!is_null($tmp = @$mysqli->change_user($link)))
34 if (!is_null($tmp = @$mysqli->change_user($link, $link)))
37 if (!is_null($tmp = @$mysqli->change_user($link, $link, $link, $link)))
40 if (false !== ($tmp = $mysqli->change_user($user . '_unknown_really', $passwd . 'non_empty', $db)))
43 if (false !== ($tmp = $mysqli->change_user($user, $passwd . '_unknown_really', $db)))
46 if (false !== ($tmp = $mysqli->change_user($user, $passwd, $db . '_unknown_really')))
50 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
54 if (!$mysqli->query('SET @mysqli_change_user_test_var=1'))
55 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error);
57 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
58 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
64 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
67 if (!$res = $mysqli->query('SELECT database() AS dbname, user() AS user'))
68 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
77 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
78 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
84 $mysqli->close();
86 if (NULL !== ($tmp = @$mysqli->change_user($user, $passwd, $db)))