xref: /PHP-5.4/ext/mysql/tests/clean_table.inc (revision 5147f6cf)
1<?PHP
2require_once('connect.inc');
3
4// connect + select_db
5if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
6	printf("[clean] Cannot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
7 	  $host, $myhost, $user, $db, $port, $socket);
8}
9
10if (!mysql_query('DROP TABLE IF EXISTS test', $link)) {
11	printf("[clean] Failed to drop test table: [%d] %s\n", mysql_errno($link), mysql_error($link));
12}
13
14mysql_close($link);
15?>