how to drop database

前端 未结 12 1913
广开言路
广开言路 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:17
    drop database <database_name>;
    
    0 讨论(0)
  • 2020-12-29 06:21

    sudo rm -rf /var/lib/mysql/db_production

    where db_production is the name of the database

    Remember to use "sudo".

    0 讨论(0)
  • 2020-12-29 06:25

    It means there are files in that directory not relating to MySQL. Another issue, although I doubt it, is insufficient permissions. You may delete that directory from the filesystem.

    0 讨论(0)
  • 2020-12-29 06:26

    Got same error. This fixed it for me in Ubuntu 10.04:

    stop mysql

    rm -rf /var/lib/mysql/XXXXX

    start mysql

    Where XXXXX is the offending database name.

    0 讨论(0)
  • 2020-12-29 06:26

    I've changed the permissions on mysql folder ( windows server c:\xampp\mysql ) and is working now, I've created and dropped databases without any error.

    0 讨论(0)
  • 2020-12-29 06:28

    This is what I do on Mac OS X Mavericks:

    1. Stop the MySQL service
    2. Remove the directory at /usr/local/mysql/data
    0 讨论(0)
提交回复
热议问题