Lines Matching refs:link
8 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
11 if (!have_innodb($link))
12 die(sprintf("skip Needs InnoDB support, [%d] %s", $link->errno, $link->error));
19 if (!mysqli_query($link, 'ALTER TABLE test ENGINE=InnoDB'))
20 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
22 mysqli_autocommit($link, false);
24 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
25 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
28 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 if (!$res = mysqli_query($link, 'DELETE FROM test'))
35 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
37 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
38 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
41 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
48 mysqli_change_user($link, $user, $passwd, $db);
50 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
51 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
54 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
61 mysqli_close($link);