Lines Matching refs:mysqli
2 mysqli->change_user()
4 mysqli
21 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
23 …if (false !== ($tmp = $mysqli->change_user($user . '_unknown_really', $passwd . 'non_empty', $db)))
26 if (false !== ($tmp = $mysqli->change_user($user, $passwd . '_unknown_really', $db)))
29 if (false !== ($tmp = $mysqli->change_user($user, $passwd, $db . '_unknown_really')))
33 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
35 if (!$mysqli->query('SET @mysqli_change_user_test_var=1'))
36 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error);
38 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
39 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
45 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
48 if (!$res = $mysqli->query('SELECT database() AS dbname, user() AS user'))
49 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
58 if (!$res = $mysqli->query('SELECT @mysqli_change_user_test_var AS test_var'))
59 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
65 $mysqli->close();
67 if (false !== ($tmp = @$mysqli->change_user($user, $passwd, $db)))