2016-12-30 104 views
1

我想重置我的根的密碼,但它一直給出這個錯誤。錯誤:無法創建測試文件

這裏是我使用

bin\mysqld.exe --defaults-file="my.ini" --init-file="D:\\mysql-init.txt" 

的聲明,這裏是MySQL-init.txt:

use mysql; 
update mysql.user SET Password=PASSWORD('password') WHERE user= 'root'; 
FLUSH PRIVILEGES; 

它給人的錯誤:

Can't create test file C:\....\data\Fatima.lower-test 

回答

1

問題該權限未被授予寫入特定文件夾。 我授予:

right click folder 
go to properties 
go to security tab 
grant permissions 
相關問題