Tôi đã cài đặt xampp, tôi đã thực hiện cài đặt bảo mật, nhưng sau một thời gian tôi đã quên mật khẩu gốc. Tôi có google nó, làm thế nào để thiết lập lại, vấn đề có vẻ như ông không thể tạo ra thấp hơn thấp hơn kiểm tra tập tin, bởi vì anh ta cố gắng truy cập vào một con đường Unix trên cửa sổ của tôi PC :), lol. cấu hình xamp.đặt lại mật khẩu gốc với cấu hình sai mysql
các resetroot.bat mang lại cho tôi kết quả này:
101108 15:37:23 [Warning] Can't create test file \usr\local\mysql\data\MYCOMPUTERNAME.lower-test 101108 15:37:23 [Warning] Can't create test file \usr\local\mysql\data\MYCOMPUTERNAME.lower-test mysql\bin\mysqld.exe: Can't change dir to '\usr\local\\mysql\data\' (Errcode: 2) 101108 15:37:23 [ERROR] Aborting 101108 15:37:23 [Note] mysql\bin\mysqld.exe: Shutdown complete Passwoerter fuer Benutzer "root" und "pma" wurden nicht geloescht! Passwords for user "root" and "pma" were not deleted! Press any key to continue . . .
Các tập tin .bat có những phần quan trọng sau đây:
PUSHD %~dp0 CD .. mysql\bin\mysqld.exe --no-defaults --bind-address=127.0.0.1 --bootstrap --console --skip-grant-tables --skip-innodb --standalone resetroot.err 2>&1 IF ERRORLEVEL 1 GOTO FEHLER GOTO KEINFEHLER :FEHLER TYPE resetroot.err ECHO. ECHO Passwoerter fuer Benutzer "root" und "pma" wurden nicht geloescht! ECHO Passwords for user "root" and "pma" were not deleted! GOTO WEITER :KEINFEHLER ECHO. ECHO Passwoerter fuer Benutzer "root" und "pma" wurden geloescht. ECHO Passwords for user "root" and "pma" were deleted. ECHO. ECHO Bitte den MySQL Server neu starten. ECHO Please restart the MySQL server. GOTO WEITER :WEITER DEL resetroot.err >nul 2>&1 DEL resetroot.sql >nul 2>&1 ECHO. POPD PAUSE
tại thư mục mysql bin là một file my.ini
# Point the following paths to different dedicated disks tmpdir = "C:/xampp/tmp/"
Không biết từ đâu đến đó đường dẫn Unix và nơi thay đổi, tham số nào.
Có cách nào khác để đặt lại mật khẩu gốc mysql cho đến khi tôi gặp lỗi này không?
@AndreKR đã trả lời câu hỏi này. Điều này cần phải được đặt là "trả lời". – joshmax
@joshmax: Người dùng này chưa bao giờ quay lại kể từ khi anh ấy đăng câu hỏi này. Không ai có thể chấp nhận câu trả lời ngoại trừ người hỏi câu hỏi, vì vậy chúng tôi sẽ phải để lại câu hỏi này. – BoltClock
@BoltClock Gotcha. Quá tệ ... Đó là một câu trả lời hữu ích. – joshmax