Error Dropping Database (Can#39;t rmdir #39;.test\#39;, errno: 17)(删除数据库时出错(无法 rmdir .test\,错误号:17))
问题描述
基本上,我学会了如何使用mysqladmin -u root -p password"命令创建 root 密码,这完全是通过 windows 命令编辑器完成的.现在,下一个过程是显示默认数据库(info.schema、mysql 和 test),这是通过使用SHOW DATABASES;"实现的
Basically, I was taught on how to create a root password using the "mysqladmin -u root -p password" command, this was done all through the windows command editor. Now, the next process was to display the default databases (info. schema, mysql and test) which was achieved by using "SHOW DATABASES;"
但是按照书上的说法,我们不得不删除多余的测试文件,然后弹出如下错误:
But according to the book, we had to delete the redundant test file and the following error pops up:
删除数据库时出错 (Can't rmdir '.test\', errno: 17)
Error Dropping Database (Can't rmdir '.test\', errno: 17)
使用的命令是DROP DATABASE test;
我正在使用 MYSQL 和 PHPMYADMIN.有关如何无错误地删除文件的任何帮助?
I am using MYSQL and PHPMYADMIN. Any help on how to drop the file with no errors?
推荐答案
一个数据库是用数据目录下的一个目录来表示的(通常是/var/lib/mysql
),这个目录的目的是用于存储表数据.
A database is represented by a directory under the data directory (usually /var/lib/mysql
), and the directory is intended for storage of table data.
DROP DATABASE
语句将删除所有表文件,然后删除代表数据库的目录.但是,它不会删除非表文件,从而无法删除目录.
The DROP DATABASE
statement will remove all table files and then remove the directory that represented the database. It will not, however, remove non-table files, whereby making it not possible to remove the directory.
MySQL 无法删除目录时显示错误消息
MySQL displays an error message when it cannot remove the directory
您可以通过删除数据库目录中的任何剩余文件然后删除目录本身来手动删除数据库.
you can really drop the database manually by removing any remaining files in the database directory and then the directory itself.
这篇关于删除数据库时出错(无法 rmdir '.test\',错误号:17)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:删除数据库时出错(无法 rmdir '.test\',错误号:17)


基础教程推荐
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01