camscape - for excellent IT solutions itkb.ro - IT knowledge base

knowledge base linux




Python install PIL

Incercand instalarea modului PIL din Python :   easy_install PIL Searching for PIL Reading http://www.pythonware.com/products/pil No local packages or download links found for PIL error: Could not find suitable distribution for Requirement.parse(''PIL'')     Rezolvarea este:   easy_install --find-links http://www.pythonware.com/products/pil/ [...] »detalii Python install PIL

MySQL Master-Master Error 1062

Aveti un setup cu mai multe servere MySQL in replicare, mai ales un sistem MySQL Master-Master. Si primiti in logul de eroare ceva asemanator cu:   [ERROR] Slave SQL: Error Duplicate entry xxx for key PRIMARY on query Error_code: [...] »detalii MySQL Master-Master Error 1062

MySQL Master-Slave sau Master-Master

Avem doua servere:   SRV1 IP: 1.1.1.1 SRV2 IP: 2.2.2.2   si dorim sa avem un sistem de replicare a bazelor de date MySQL, folosind SRV1 ca master, SRV2 ca slave.     Pe SRV1 (MySQL MASTER), se modifica my.cnf [...] »detalii MySQL Master-Slave sau Master-Master

MySQL restore lent

Daca un mysqldump dureaza (exemplu) 100sec, s-ar putea sa aveti surpriza ca, pe aceeasi masina, restore-ul sa dureze cateva ore.   Solutii:   1. Atunci cand faci backup-ul adauga --opt in linia de comanda:   mysqldump -u root -p --all-databases [...] »detalii MySQL restore lent