报错:
mysql> drop database test;
ERROR 1010 (HY000): Error dropping database (can't rmdir './test/', errno: 17)
解决方法:
mysql> select @@datadir;
+-----------------+
| @@datadir |
+-----------------+
| /var/lib/mysql/ |
+-----------------+
1 row in set (0.00 sec)
$ sudo cd /var/lib/mysql/test/
$ sudo rm -rf *
再次执行删除:
mysql> drop database test;