how to drop database

前端 未结 12 1984
广开言路
广开言路 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:33

    1) rm -rf /var/lib/mysql/data/*** keep the data dir , rm the contents of data/

    2) use

     mysql -uxxx -pyyy
       $ drop database data;
    

    then it would be ok to recreate the data database again. hopefully it will help, Attention , direct remove data dir is useless, whatever you restart mysqld or not .

提交回复
热议问题