Viga "MySQL server on kadunud": kuidas veateadet parandada
MySQL Error 2006 "MySQL server on ära läinud" ilmneb ikka ja jälle - eriti andmebaaside importimisel MySQL-i. Veale on lihtne lahendus. Kõigi toimingute ülevaate leiate siit.
Parandage lihtsalt MySQL-i viga 2006 "MySQL-server on ära läinud"
See MySQL-i tõrge ilmneb andmebaaside importimisel, mis on üleslaadimiseks liiga suured või ühendus on liiga aeglane. Vea parandamiseks muutke MySQL-i konfiguratsioonifailis lihtsalt kahte muutujat.
- Windowsi XAMPP-i alt leiate konfiguratsioonifaili vaikimisi kaustas C: \ xampp \ mysql \ bin \ my.cnf
- Kui seda faili ei eksisteeri, saate lihtsalt kasutada nuppu a
Paremklõpsake> "Uus"> Loo "Tekstidokument". - Veel üks praktiline näpunäide ütleb teile, kuidas faili uue faililaiendiga (.cnf) salvestada.
- Linuxis asub see fail vaikimisi aadressil /etc/mysql/my.cnf
Sellesse faili sisestate nüüd järgmiste muutujate kõrgemad väärtused:
- wait_timeout = 60 Siin sisestate sekundites soovitud ajalõpu - kui see on endiselt liiga madal, saate seda lihtsalt veelgi suurendada.
- max_allowed_packet = 100M See muutuja määrab üleslaadimise maksimaalse paketi suuruse.
Nüüd määrake selle muutuja väärtus ülespoole nii, et see oleks suurem kui imporditava andmebaasi failisuurus. - Lõpuks taaskäivitage MySQL - viga ei tohiks enam ilmneda
- Tähtis: reaalajas süsteemides peaksite muudetud muutujad pärast seda lähtestama nende vaikeväärtustele, kuna need võivad kujutada ründajate jaoks turvaauku.
Järgmises artiklis näeme teile, kuidas andmebaaside importimine MySQL-i tööriista phpMyAdmin abil toimib.