如何通过shell命令删除mysql数据库 [英] How to delete mysql database through shell command
本文介绍了如何通过shell命令删除mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用了pylons和sqlalchemy。我不断地更新模式文件,删除和重新创建数据库,以便可以做出新的模式。
I use the pylons and sqlalchemy. I constantly update the schema files and delete and recreate the database so that new schema can be made.
每次通过打开MySql查询浏览器并登录并删除数据库/模式,这样做。
Every time I do this by opening the MySql Query Browser and login and delete the database/schema.
如何在Ubuntu Linux中通过linux shell命令删除MySQL数据库/模式?
推荐答案
mysqladmin -u[username] -p[password] drop [database]
这篇关于如何通过shell命令删除mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文