如何删除MySQL数据库? [英] How do I remove a MySQL database?

查看:89
本文介绍了如何删除MySQL数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可能从我的最后一个问题中注意到,问题导致了更多的问题, 在MySQL监视器中阅读MySQL手册?

You may notice from my last question that a problem caused some more problems, Reading MySQL manuals in MySQL monitor?

我的数据库现在无法使用,部分原因是我有兴趣破坏事物并且无法查看错误消息.我知道我不应该重用主键,但是在删除损坏的数据库后,我想再次使用它们.所以

My database is now unusable partly due to my interest to break things and my inability to look at error messages. I know that I should not reuse primary keys, but I would like to use them again after the removal of the database that I deteriorated. So

如何正确删除MySQL数据库?

推荐答案

在MySQL提示符下:

From the MySQL prompt:

mysql> drop database <db_name>;

这篇关于如何删除MySQL数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆