Solution to schema deletion failure in mysql in mac environment _ MySQL

Source: Internet
Author: User
Solution to schema deletion failure in mysql in mac environment bitsCN.com

Solution to schema deletion failure of mysql in mac environment

First, describe the problem environment. I installed mysql + workbench on a mac machine.

When deleting a database, the error dropping database cant rmdir./test occurs.

Google's solution is to find the test directory and delete the files under the Directory.

So I went to the test directory and found that mysql-related directories could not be found through mac search. the directory should be hidden and the results will not be displayed by default.

Later, I found the directory under usr/local/mysql/data. However, the created database directories are all set with access permissions and cannot be accessed.

Use the command line chmod command to change the test permission, remove all the files, and then delete the files in workbench.

Note: The test Directory cannot be deleted directly. only files under the test directory can be deleted. otherwise, workbench cannot find the database, and the database cannot be deleted normally.

BitsCN.com

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.