osx lion - Drop database return "Error dropping database errno: 66" in MySQL -
consider:
drop database db_name; error 1010 (hy000): error dropping database (can't rmdir './db_name', errno: 66)
the problem don't know file/directory located - file missing in /usr/local/mysql/bin/...
how fix issue?
mysql> drop database db_name; error 1010 (hy000): error dropping database (can't rmdir './db_name', errno: 66)
find database directory:
mysql -e "select @@datadir"
->/usr/local/mysql/data/
go database folder:
cd /usr/local/mysql/data/
delete db folder of db issue (in case:
sudo rm -rf db_name
)
Comments
Post a Comment