Lines Matching refs:link
9 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
12 if (!have_innodb($link))
13 die(sprintf("Needs InnoDB support, [%d] %s", $link->errno, $link->error));
20 if (!mysqli_query($link, 'ALTER TABLE test ENGINE=InnoDB'))
21 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
23 mysqli_autocommit($link, false);
25 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
26 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
35 if (!$res = mysqli_query($link, 'DELETE FROM test'))
36 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
38 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
39 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
49 mysqli_change_user($link, $user, $passwd, $db);
51 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS _num FROM test'))
52 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
55 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
62 mysqli_close($link);