xref: /PHP-7.1/ext/mysqli/tests/clean_table.inc (revision 03f3b847)
1<?PHP
2require_once('connect.inc');
3
4if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
5	printf("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
6		$host, $user, $db, $port, $socket);
7}
8
9if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
10	printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
11}
12
13mysqli_close($link);
14?>
15