Am observat că aproape toată lumea când instalează baza de date luată la pachet cu un serverfile întâmpină probleme cu serverul MySQL.
Ori nu cunosc parola Root, ori nu le mai pornește serverul cu eroarea "tmp/mysql.socket" și multe altele.
Dacă ați instalat deja baza de date și aveți eroarea pe serverul MySQL cel mai bine este sa reinstalați tot sistemul de operare. Dacă va este mai comod merge și cu reinstalarea serverului MySQL.
Când ajungeți la urcarea bazei de date pe server nu băgați acea arhiva în server după care să folosiți comanda "tar -xzf". Extrageți baza de date în PC folosind 7zip după care urcați manual doar folderele din acea arhiva fara mysql și information-schema. Repet, doar folderele , fara cele 2 menționate mai sus și fără celelalte fișiere ce vin în root-ul folderului mysql.
Toate aceste foldere se urca în /var/db/mysql .
După ce ați urcat toate fișierele, reporniti serverul mysql 'service mysql-server restart' , intrați în Navicat (sau ce program folosiți) și luați la rand toate tabelele din fiecare db la verificat ( click dreapta/mentenanță/verificare) dacă aveți probleme îi dați reparare.
Noile servere de mysql au un alt format pentru datetime si nu va mai suporta formatul default Ce vine cu serverul (0000-00-00 00:00:00) așa că va trebui să schimbați asta manual . Când dați verificare la tabele o să apare care necesită schimbare la acel format . Pentru a modifica dați click dr pe tabela și selectați designe și unde scrie datetime schimbați default-ul cu o dată oarecare dar sa nu fie peste cea actuală (eu pe serverul meu am pus data apocalipsei 2012-12-12 12:12:12).
Reset parola mysql
In ultimul timp am vazut multi detinatori de servere care nu stiu sa reseteze parola mysql din...