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));
18 if (!mysqli_query($link, 'ALTER TABLE test ENGINE=InnoDB'))
19 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
21 mysqli_autocommit($link, false);
23 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
24 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
33 if (!$res = mysqli_query($link, 'DELETE FROM test'))
34 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
36 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
37 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
40 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
47 mysqli_change_user($link, $user, $passwd, $db);
49 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
50 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
53 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
60 mysqli_close($link);