Lines Matching refs:link
12 if (!($link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)))
16 if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl"')) {
19 if ($link->errno == 1064 && ($res = $link->query("SHOW VARIABLES"))) {
24 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
30 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
33 die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error));
35 $link->close();
41 if (!is_object($link = mysqli_init()))
42 printf("[001] Cannot create link\n");
45 …if (!$link->ssl_set("{$path_to_pems}client-key.pem", "{$path_to_pems}client-cert.pem", "{$path_to_…
46 printf("[002] [%d] %s\n", $link->errno, $link->error);
48 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
52 if (!$res = $link->query('SHOW STATUS like "Ssl_cipher"')) {
53 if (1064 == $link->errno) {
55 if ($res = $link->query("SHOW STATUS")) {
60 printf("[005] [%d] %s\n", $link->errno, $link->error);
63 printf("[004] [%d] %s\n", $link->errno, $link->error);
67 printf("[006] [%d] %s\n", $link->errno, $link->error);