how to drop database

前端 未结 12 2006
广开言路
广开言路 2020-12-29 05:40

i used the following sytanx

drop database filmo; 

and got the following error:

ERROR 1010 (HY000): Error dropping database         


        
12条回答
  •  孤独总比滥情好
    2020-12-29 06:39

    Not sure where I got this answer from (apologies) but, although similar to the above, it has the additional info of how to find the mysql data directory:

    mysql -e "select @@datadir"

    This, I assume, is generic and returns the path to mysql/data. If you move to that directory (unix/linux/macOS command):

    cd path_to_mysql/data

    you will find the database you want to remove, which on nix can be done by:

    sudo rm -rf DB_NAME

    On MacOS X (10.9.5) I did not have to stop MySQL, but this may differ on other platforms.

提交回复
热议问题