????????????????mysql????????????????????????????????????? MySQL ?????
??????????????????root????????root?????и???????????? mysql mysqladmin ???????????????
??????????????????У?????????????????????????????????????????????
???????????????????TUTORIALS(???????????????????)??
????[root@host]# mysqladmin -u root -p drop TUTORIALS
????Enter password:******
????????????????????????????????????????????????????????
????Dropping the database is potentially a very bad thing to do.
????Any data stored in the database will be destroyed.
????Do you really want to drop the 'TUTORIALS' database [y/N] y
????Database "TUTORIALS" dropped
???????PHP???????????
????PHP??? mysql_query ????????????????? MySQL ?????
?????ú???????????????????г??????? TRUE???????? FALSE??
??????
????bool mysql_query( sql?? connection );

???????
???????????????????PHP mysql_query??????????????
<html>
<head>
<title>Deleting MySQL Database</title>
</head>
<body>
<?php
$dbhost = 'localhost:3036';
$dbuser = 'root';
$dbpass = 'rootpassword';
$conn = mysql_connect($dbhost?? $dbuser?? $dbpass);
if(! $conn )
{
die('???????: ' . mysql_error());
}
echo '??????<br />';
$sql = 'DROP DATABASE TUTORIALS';
$retval = mysql_query( $sql?? $conn );
if(! $retval )
{
die('???????????: ' . mysql_error());
}
echo "????? TUTORIALS ?????? ";
mysql_close($conn);
?>
</body>
</html>
??????? ?????PHP????????????????????????????????????????????????????????????????????????С???