Archive for the ‘Solutions to Random Errors’ Category

ERROR 1010 (HY000): Error dropping database (can’t rmdir ‘./[database_name]/’, errno: 17)

Tuesday, September 1st, 2009

I was getting this cryptic error message earlier. It initially looks like a permissions problem but in fact it was caused by prior use of the SELECT .. INTO OUTFILE which dumped a .csv file into the database directory and was preventing the remove directory command from successfully executing.

That directory is /opt/local/var/db/mysql5/[database_name] on Macports, /var/lib/mysql/[database_name] on Linux (well Debian, at least) and FreeBSD /var/db/mysql/[database_name]


Thoughts & Ideas About Web Development is Digg proof thanks to caching by WP Super Cache!