Reputation: 13
I am getting the following error while dropping a database on MySQL Workbench on Mac OS X 10.8.2.
Error 1010: Error dropping database (can't rmdir './nssj', errno: 66) SQL Statement: drop schema
NSSJ
I tried to search for this dir in /usr/local/mysql
but I am not to find it.
Can any one tell me what I am missing here?
Upvotes: 0
Views: 4569
Reputation: 841
Delete database from the Directory bin/mysql/mysql5.6.12/data
mysql5.6.12 is my mysql version it depend upon your mysql version
Upvotes: 2
Reputation: 81
The chances are you are not running within an administrator's account; you don't have permission to delete the directory.
Hope this helps
Upvotes: 0
Reputation: 8553
Stop the sql workbench
1)Remove db -> /usr/local/mysql/bin/mysql (the one which you want to delete)
2) Go to DB folder: cd /usr/local/mysql/data/
3) Delete DB folder of DB with issue
Start your workbench
Upvotes: 1