Lines Matching refs:mysqli
2 mysqli->change_user()
4 mysqli
24 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
28 …if (false !== ($tmp = $mysqli->change_user($user . '_unknown_really', $passwd . 'non_empty', $db)))
31 if (false !== ($tmp = $mysqli->change_user($user, $passwd . '_unknown_really', $db)))
34 if (false !== ($tmp = $mysqli->change_user($user, $passwd, $db . '_unknown_really')))
38 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
42 if (!$mysqli->query('SET @mysqli_change_user_test_var=1'))
43 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error);
45 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
46 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
52 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
55 if (!$res = $mysqli->query('SELECT database() AS dbname, user() AS user'))
56 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
65 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
66 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
72 $mysqli->close();
74 if (false !== ($tmp = @$mysqli->change_user($user, $passwd, $db)))