Lines Matching refs:mysqli
2 mysqli->change_user()
4 mysqli
18 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
20 …if (false !== ($tmp = $mysqli->change_user($user . '_unknown_really', $passwd . 'non_empty', $db)))
23 if (false !== ($tmp = $mysqli->change_user($user, $passwd . '_unknown_really', $db)))
26 if (false !== ($tmp = $mysqli->change_user($user, $passwd, $db . '_unknown_really')))
30 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
32 if (!$mysqli->query('SET @mysqli_change_user_test_var=1'))
33 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error);
35 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
36 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
42 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
45 if (!$res = $mysqli->query('SELECT database() AS dbname, user() AS user'))
46 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
55 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
56 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 $mysqli->close();
64 if (false !== ($tmp = @$mysqli->change_user($user, $passwd, $db)))