Lỗi chạy file resetroot.bat reset pass user root cho mysql trong Windows 7

Khi cài đặt XAMPP, mysql có file resetroot.bat để reset lại password của user root và pma khá tiện. Tuy nhiên, khi chạy file bat này trên windows 7 thì phát sinh lỗi

101023 15:05:07 [Warning] Can’t create test file \usr\local\mysql\data\Zorro-box
.lower-test
101023 15:05:07 [Warning] Can’t create test file \usr\local\mysql\data\Zorro-box
.lower-test
mysql\bin\mysqld.exe: Can’t change dir to ‘\usr\local\\mysql\data\’ (Errcode: 2)

Theo http://www.apachefriends.org/f/viewtopic.php?f=16&t=42368&p=167128, lỗi này có thể sửa được bằng các bước sau
- open resetroot.bat file in your editor
- after the parameter “–no-defaults” add you mysql data directory with this syntax: –datadir=c:/xampp/mysql/data
- save the file
- execute the file

Chạy lại ngon ngay!

Để lại phản hồi

Chưa có phản hồi.

RSS của phản hồi TrackBack

Gửi phản hồi

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Thay đổi )

Twitter picture

You are commenting using your Twitter account. Log Out / Thay đổi )

Facebook photo

You are commenting using your Facebook account. Log Out / Thay đổi )

Connecting to %s

Follow

Get every new post delivered to your Inbox.