Error Dropping Database (Can't rmdir '.test\', errno: 17)

后端 未结 17 2324
误落风尘
误落风尘 2020-11-28 22:09

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

17条回答
  •  臣服心动
    2020-11-28 22:27

    Go through this and remove corresponding cache files in selected db then after you can drop your database

    First find Your MySQL Data Directory Containing Your selected DB

    Linux

    • Open up MySQL's configuration file: less /etc/my.cnf
    • Search for the term "datadir": /datadir

    • If it exists, it will highlight a line that reads: datadir = [path]

    • You can also manually look for that line. It typically would be found under a section heading of [mysqld] but it does not necessarily have to be found there.

    • If that line does not exist, then MySQL will default to: /var/lib/mysql.

    Windows 1. Open up MySQL's configuration file into Notepad: my.ini

    The my.ini will be located in the MySQL program folder, which would be wherever it got installed. If you did not install MySQL, then use the Windows "search" feature to look for my.ini. You could also manually search for it by browsing to [drive]:\Program Files\MySQL\MySQL Server 5.5.

    1. Do a search in Notepad to find the term "datadir".

    2. If it exists, it will highlight a line that reads: datadir = [path]

    3. You can also manually look for that line. It typically would be found under a section heading of [mysqld] but it does not necessarily have to be found there.

    4. If that line does not exist, then you'll probably find it under [drive]:\ProgramData\MySQL\MySQL Server 5.5\data.

    NOTE: The "ProgramData" folder may be hidden. You may have to type the explicit path into Windows Explore

提交回复
热议问题