{"id":217827,"date":"2023-12-23T00:55:24","date_gmt":"2023-12-22T16:55:24","guid":{"rendered":"https:\/\/www.idc.net\/help\/217827\/"},"modified":"2023-12-23T00:55:24","modified_gmt":"2023-12-22T16:55:24","slug":"mysql%e4%bd%bf%e7%94%a8%e6%89%8b%e5%86%8c%ef%bc%9a%e4%bd%bf%e7%94%a8drop-database-database%e6%9d%a5%e5%88%a0%e9%99%a4%e4%b8%80%e4%b8%aa%e5%b7%b2%e5%ad%98%e5%9c%a8%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/217827\/","title":{"rendered":"MySQL\u4f7f\u7528\u624b\u518c\uff1a\u4f7f\u7528DROP DATABASE [database]\u6765\u5220\u9664\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u6570\u636e\u5e93"},"content":{"rendered":"<p><title id=\"mysql%e4%bd%bf%e7%94%a8%e6%89%8b%e5%86%8c%ef%bc%9a%e4%bd%bf%e7%94%a8drop-database-database%e6%9d%a5%e5%88%a0%e9%99%a4%e4%b8%80%e4%b8%aa%e5%b7%b2%e5%ad%98%e5%9c%a8%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93-UppCYczxga\">MySQL\u4f7f\u7528\u624b\u518c\uff1a\u4f7f\u7528DROP DATABASE [database]\u6765\u5220\u9664\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u6570\u636e\u5e93<\/title><\/p>\n<h1 id=\"mysql%e4%bd%bf%e7%94%a8%e6%89%8b%e5%86%8c%ef%bc%9a%e4%bd%bf%e7%94%a8drop-database-database%e6%9d%a5%e5%88%a0%e9%99%a4%e4%b8%80%e4%b8%aa%e5%b7%b2%e5%ad%98%e5%9c%a8%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93-UppCYczxga\">MySQL\u4f7f\u7528\u624b\u518c\uff1a\u4f7f\u7528DROP DATABASE [database]\u6765\u5220\u9664\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u6570\u636e\u5e93<\/h1>\n<p>MySQL\u662f\u4e00\u79cd\u6d41\u884c\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u88ab\u5e7f\u6cdb\u7528\u4e8e\u5404\u79cdWeb\u5e94\u7528\u7a0b\u5e8f\u548c\u7f51\u7ad9\u5f00\u53d1\u4e2d\u3002\u5728MySQL\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528DROP DATABASE\u8bed\u53e5\u6765\u5220\u9664\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u6570\u636e\u5e93\u3002<\/p>\n<h2 id=\"%e8%af%ad%e6%b3%95-UppCYczxga\">\u8bed\u6cd5<\/h2>\n<p>\u4f7f\u7528DROP DATABASE\u8bed\u53e5\u5220\u9664\u6570\u636e\u5e93\u7684\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre><code>DROP DATABASE [IF EXISTS] database_name;\n<\/code><\/pre>\n<p>\u5176\u4e2d\uff0cdatabase_name\u662f\u8981\u5220\u9664\u7684\u6570\u636e\u5e93\u7684\u540d\u79f0\u3002\u5982\u679c\u4f7f\u7528\u4e86IF EXISTS\u9009\u9879\uff0c\u5219\u5728\u6570\u636e\u5e93\u4e0d\u5b58\u5728\u65f6\u4e0d\u4f1a\u62a5\u9519\u3002<\/p>\n<h2 id=\"%e7%a4%ba%e4%be%8b-UppCYczxga\">\u793a\u4f8b<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4f7f\u7528DROP DATABASE\u8bed\u53e5\u5220\u9664\u6570\u636e\u5e93\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>DROP DATABASE mydatabase;\n<\/code><\/pre>\n<p>\u4e0a\u8ff0\u793a\u4f8b\u5c06\u5220\u9664\u540d\u4e3amydatabase\u7684\u6570\u636e\u5e93\u3002<\/p>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9-UppCYczxga\">\u6ce8\u610f\u4e8b\u9879<\/h2>\n<p>\u5728\u4f7f\u7528DROP DATABASE\u8bed\u53e5\u5220\u9664\u6570\u636e\u5e93\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<ul>\n<li>\u5220\u9664\u6570\u636e\u5e93\u5c06\u6c38\u4e45\u5220\u9664\u5176\u4e2d\u7684\u6240\u6709\u6570\u636e\uff0c\u5305\u62ec\u8868\u3001\u89c6\u56fe\u3001\u5b58\u50a8\u8fc7\u7a0b\u7b49\u3002<\/li>\n<li>\u5728\u6267\u884cDROP DATABASE\u8bed\u53e5\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u5df2\u5907\u4efd\u4e86\u6570\u636e\u5e93\u4e2d\u91cd\u8981\u7684\u6570\u636e\u3002<\/li>\n<li>\u53ea\u6709\u5177\u6709\u8db3\u591f\u6743\u9650\u7684\u7528\u6237\u624d\u80fd\u6267\u884cDROP DATABASE\u8bed\u53e5\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%80%bb%e7%bb%93-UppCYczxga\">\u603b\u7ed3<\/h2>\n<p>MySQL\u7684DROP DATABASE\u8bed\u53e5\u662f\u5220\u9664\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u6570\u636e\u5e93\u7684\u5e38\u7528\u547d\u4ee4\u3002\u4f7f\u7528\u8be5\u8bed\u53e5\u53ef\u4ee5\u8f7b\u677e\u5220\u9664\u4e0d\u518d\u9700\u8981\u7684\u6570\u636e\u5e93\uff0c\u4f46\u9700\u8981\u8c28\u614e\u64cd\u4f5c\uff0c\u4ee5\u514d\u8bef\u5220\u91cd\u8981\u6570\u636e\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5bfb\u627e\u53ef\u9760\u7684\u4e91\u8ba1\u7b97\u670d\u52a1\u63d0\u4f9b\u5546\uff0c\u540e\u6d6a\u4e91\u662f\u4e00\u4e2a\u503c\u5f97\u8003\u8651\u7684\u9009\u62e9\u3002\u540e\u6d6a\u4e91\u63d0\u4f9b\u9999\u6e2f\u670d\u52a1\u5668\u3001\u7f8e\u56fd\u670d\u52a1\u5668\u548c\u4e91\u670d\u52a1\u5668\u7b49\u591a\u79cd\u4ea7\u54c1\uff0c\u4e3a\u60a8\u7684\u4e1a\u52a1\u63d0\u4f9b\u9ad8\u6027\u80fd\u548c\u53ef\u9760\u7684\u57fa\u7840\u8bbe\u65bd\u652f\u6301\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee<a href=\"https:\/\/idc.net\">\u540e\u6d6a\u4e91\u5b98\u7f51<\/a>\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL\u4f7f\u7528\u624b\u518c\uff1a\u4f7f\u7528DROP DATABASE [database]\u6765\u5220\u9664\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u6570\u636e\u5e93 MySQL\u4f7f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[197851],"tags":[],"class_list":["post-217827","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/217827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=217827"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/217827\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=217827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=217827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=217827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}