Lines Matching refs:mysqli
2 mysqli->change_user()
4 mysqli
21 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
25 …if (false !== ($tmp = $mysqli->change_user($user . '_unknown_really', $passwd . 'non_empty', $db)))
28 if (false !== ($tmp = $mysqli->change_user($user, $passwd . '_unknown_really', $db)))
31 if (false !== ($tmp = $mysqli->change_user($user, $passwd, $db . '_unknown_really')))
35 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
39 if (!$mysqli->query('SET @mysqli_change_user_test_var=1'))
40 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error);
42 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
43 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
49 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
52 if (!$res = $mysqli->query('SELECT database() AS dbname, user() AS user'))
53 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
63 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
69 $mysqli->close();
71 if (false !== ($tmp = @$mysqli->change_user($user, $passwd, $db)))