Problems with the drop library in MySQL

Source: Internet
Author: User

Recently drop database pai; Error

Error 1010 (HY000): Error dropping database (can ' t rmdir './pai ', errno:39)

I just want to remove the library file and try it, so

Rm-rf/usr/local/mysql/data/pai

then I show databases;

And then there's the PAI library.

So drop database pai;

Error 1010 (HY000): Error dropping database (can ' t rmdir './pai ', errno:39)

Tangled for a long time, most of the online is not deleted Pai, but the inside of the file. I've deleted the library.


So mysql> show variables like '%datadir% ';

+---------------+-----------------+
| variable_name | Value |
+---------------+-----------------+
| DataDir | /var/lib/mysql/|
+---------------+-----------------+

We found Pai in this directory.

So Rm-rf/var/lib/mysql/pai

then show databases;

The result is gone and is deleted.

This article is from the "domineering full" blog, please be sure to keep this source http://8813745.blog.51cto.com/8803745/1535856

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.