In the mac environment, mysql cannot delete the schema. The solution first describes the problem environment. I installed mysql + workbench on a mac machine. When deleting a database, the error errordroppingdatabasecantrmdir. test occurs. Google's solution is to find the test directory and put the files under the Directory
In the mac environment, mysql cannot delete the schema. The solution first describes 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 put the files under the Directory
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.