Xử lý lỗi “MySQL shutdown unexpectedly” khi khởi động XAMPP
XAMPP là phần mềm giả lập server, trong đó tích hợp apache, mysql và php. Tuy nhiên, đôi lúc chúng ta gặp lỗi “MySQL Shutdown Unexpectedly” khi MySQL Server đột ngột dừng hoạt động mà không có lịch trình hoặc lý do rõ ràng. Đâu là cách khắc phục?
Đây là thông báo lỗi đầy đủ của lỗi “MySQL Shutdown Unexpectedly”:
Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums.
Đổi tên thư mục mysql/data thành mysql/data_old (bạn có thể chọn tên bất kỳ)
Tạo thư mục mới mysql/data
Copy toàn bộ nội dung nằm trong thư mục mysql/backup sang thư mục sang thư mục mysql/data vừa mới tạo
Copy các thư mục database của bạn ở mysql/data_old sang mysql/data (bỏ qua các thư mục mysql, performance_schema, và phpmyadmin nằm trong from data_old)
Cuối cùng copy file ibdata1 từ mysql/data_old và sang thư mục mysql/data để thay thế file có tên tương tự
RELATED Posts