好久没有收集apache的文章了。今天在冰剑博客看到这篇,觉得不错。
<?php
$user = ""; //数据库用户名
$password = "";//数据库密码
$db_name = "i";//数据库名
$link = mysql_connect("localhost:3306",$user,$password);
mysql_select_db("$db_name",$link);
echo "<p>正在清空数据库,请稍等....<br>";
$result=mysql_query("SHOW tables",$link);
while ($currow=mysql_fetch_array($result)) {
mysql_query("drop TABLE IF EXISTS $currow[0]");
echo $currow[0]."<br>";
}
echo "<br>恭喜你清理MYSQL成功<br>";
?>
$user = ""; //数据库用户名
$password = "";//数据库密码
$db_name = "i";//数据库名
$link = mysql_connect("localhost:3306",$user,$password);
mysql_select_db("$db_name",$link);
echo "<p>正在清空数据库,请稍等....<br>";
$result=mysql_query("SHOW tables",$link);
while ($currow=mysql_fetch_array($result)) {
mysql_query("drop TABLE IF EXISTS $currow[0]");
echo $currow[0]."<br>";
}
echo "<br>恭喜你清理MYSQL成功<br>";
?>
yexin
怎么用啊
2008年2月11日 09:58
Marshal 回复于 2008年2月11日 10:21
弄成一个php文件
分页: 1/1
1
1


2008年2月7日 16:53,
08年恭贺新年-短信经典贺岁
让APACHE防止多线程下载


