Created
June 5, 2023 17:38
-
-
Save mhcifci/afafa1d03c53518431737e98563041d5 to your computer and use it in GitHub Desktop.
MySQL'de Error Shutdown Unexpectedly Hatası için Bat Dosyası
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd C:\xampp | |
cd mysql | |
ren data data_old | |
mkdir data | |
xcopy /e /y backup\* data | |
copy data_old\ibdata1 data | |
copy data_old\ib_logfile0 data | |
copy data_old\ib_logfile1 data | |
for /d %%i in (data_old\*) do ( | |
if /i not "%%~nxi"=="performance_schema" ( | |
if /i not "%%~nxi"=="phpmyadmin" ( | |
if /i not "%%~nxi"=="test" ( | |
if /i not "%%~nxi"=="mysql" ( | |
move "%%i" "data" | |
) | |
) | |
) | |
) | |
) | |
rmdir /s /q data_old | |
echo İşlem tamamlandı! | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[en]
Close XAMPP completely. First, save this file to Notepad, then click on 'Save As' and save it anywhere on your computer with the name 'filename.bat'. Afterwards, run this saved file as an administrator. The solution provided below is a quick method to resolve the issue when it occurs.
[tr]
Xampp'ı komple kapatın, bu dosyayı ilk önce not defterine kaydedin, daha sonrasında farklı kaydet'e tıklayarak bilgisayarınızda herhangi bir yere isim.bat şeklinde kaydedin. Daha sonrasında bu kaydettiğiniz dosyayı yönetici olarak çalıştırın. Aşağıda belirtilen çözüm yolunun kısa yöntemidir. Hata verdiği zaman bu bat dosyasıyla hızlıca çözebilirsiniz.
https://www.stechies.com/error-mysql-shutdown-unexpectedly/#:~:text=Cause%20of%20%E2%80%9CError%3A%20MySQL%20Shutdown,cause%20MySQL%20to%20shut%20down.