{"id":2544,"date":"2018-07-11T19:16:25","date_gmt":"2018-07-11T17:16:25","guid":{"rendered":"https:\/\/www.ybierling.com\/v2\/?p=2544"},"modified":"2018-07-11T19:16:25","modified_gmt":"2018-07-11T17:16:25","slug":"how-to-delete-a-database-in-phpmyadmin","status":"publish","type":"post","link":"https:\/\/www.ybierling.com\/v2\/en\/how-to-delete-a-database-in-phpmyadmin\/","title":{"rendered":"How to delete a database in phpMyAdmin"},"content":{"rendered":"<p>Deleting a database in phpMyAdmin is pretty easy and straightforward, but also very dangerous. Make surea backup is available before doing so, and that the right database has been selected !<br \/>\nUsing SQL, this syntax will do the trick, by replacing the database name for the one on the local MySQL server :<\/p>\n<blockquote><p><span class=\"cm-keyword\"><a class=\"cm-sql-doc\" href=\"http:\/\/localhost\/phpmyadmin\/url.php?url=https:\/\/dev.mysql.com\/doc\/refman\/5.5\/en\/select.html\" target=\"mysql_doc\">DROP DATABASE<\/a><\/span> <span class=\"cm-variable-2\">`database`<\/span><\/p><\/blockquote>\n<p>Or visually by following below steps<\/p>\n<p>First, log on to the localhost phpMyAdmin, or the remote phpMyAdmin if working on a distant server :<\/p>\n<blockquote>\n<figure id=\"attachment_2546\" aria-describedby=\"caption-attachment-2546\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase1.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-medium wp-image-2546\" src=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase1-300x178.png\" alt=\"How to delete a database in phpMyAdmin : Selecting the database to delete in main screen\" width=\"300\" height=\"178\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase1-300x178.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase1-768x457.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase1.png 888w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-2546\" class=\"wp-caption-text\">Selecting the database to delete in main screen<\/figcaption><\/figure><\/blockquote>\n<p>There, once in the database, go to the menu Operations<\/p>\n<blockquote>\n<figure id=\"attachment_2547\" aria-describedby=\"caption-attachment-2547\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase2.png\"><img decoding=\"async\" class=\"size-medium wp-image-2547\" src=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase2-300x132.png\" alt=\"How to delete a database in phpMyAdmin : Finding the operations menu once the database to delete has been selected\" width=\"300\" height=\"132\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase2-300x132.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase2-768x338.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase2-1024x451.png 1024w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase2.png 1414w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-2547\" class=\"wp-caption-text\">Finding the operations menu once the database to delete has been selected<\/figcaption><\/figure><\/blockquote>\n<p>In the operations menu, a red link drop the database will be displayed, click on it<\/p>\n<blockquote>\n<figure id=\"attachment_2548\" aria-describedby=\"caption-attachment-2548\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase3.png\"><img decoding=\"async\" class=\"size-medium wp-image-2548\" src=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase3-300x168.png\" alt=\"How to delete a database in phpMyAdmin : Drop the database link\" width=\"300\" height=\"168\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase3-300x168.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase3-768x430.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase3-1024x573.png 1024w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase3.png 1353w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-2548\" class=\"wp-caption-text\">Drop the database link<\/figcaption><\/figure><\/blockquote>\n<p>A popup will ask confirmation to destroy the complete database.<\/p>\n<blockquote>\n<figure id=\"attachment_2549\" aria-describedby=\"caption-attachment-2549\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2549\" src=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase4-300x168.png\" alt=\"How to delete a database in phpMyAdmin : Confirm database deletion\" width=\"300\" height=\"168\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase4-300x168.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase4-768x431.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase4.png 1019w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-2549\" class=\"wp-caption-text\">Confirm database deletion<\/figcaption><\/figure><\/blockquote>\n<p>As the operation is non reversible, double check that the right database has been selected<\/p>\n<p>After the database deletion is complete, interface redirects to main phpMyAdmin page, with a popup MySQL returned an empty result set, as no row have been selected, and the database should not be available anymore.<\/p>\n<blockquote>\n<figure id=\"attachment_2545\" aria-describedby=\"caption-attachment-2545\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2545\" src=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase5-300x133.png\" alt=\"How to delete a database in phpMyAdmin : Database successfully deleted\" width=\"300\" height=\"133\" srcset=\"https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase5-300x133.png 300w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase5-768x342.png 768w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase5-1024x456.png 1024w, https:\/\/www.ybierling.com\/v2\/wp-content\/uploads\/2018\/07\/phpmyadmindeletedatabase5.png 1342w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-2545\" class=\"wp-caption-text\">Database successfully deleted<\/figcaption><\/figure><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Deleting a database in phpMyAdmin is pretty easy and straightforward, but also very dangerous. Make surea backup is available before<\/p>\n","protected":false},"author":1,"featured_media":2549,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[576],"tags":[7087,7083,7099,7103,7089,7085,7093,7095,7097,624,7091,7101],"class_list":["post-2544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-destroy-a-complete-database","tag-drop-database","tag-drop-procedure-in-sql","tag-drop-table","tag-drop-the-database","tag-how-to-delete-database-from-phpmyadmin","tag-how-to-delete-database-in-mysql","tag-how-to-delete-database-in-phpmyadmin","tag-mysql-drop-database","tag-phpmyadmin","tag-phpmyadmin-drop-database","tag-sql-drop-temp-table"],"_links":{"self":[{"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/posts\/2544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/comments?post=2544"}],"version-history":[{"count":1,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/posts\/2544\/revisions"}],"predecessor-version":[{"id":2550,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/posts\/2544\/revisions\/2550"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/media\/2549"}],"wp:attachment":[{"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/media?parent=2544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/categories?post=2544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ybierling.com\/v2\/wp-json\/wp\/v2\/tags?post=2544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}