MySQL????????????????
???????????? ???????[ 2016/6/2 10:40:26 ] ????????????? MySQL
????????????????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????????????????????????????????????????????????????????????????????????С???
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11