mysql> use dbname_smf
Database changed
mysql> check table smf_messages
-> ;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 307270
Current database: dbname_smf
+---------------------------+-------+----------+---------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+---------------------------+-------+----------+---------------------------------------------------------+
| dbname_smf.smf_messages | check | warning | Table is marked as crashed and last repair failed |
| dbname_smf.smf_messages | check | warning | 1 client is using or hasn't closed the table properly |
| dbname_smf.smf_messages | check | warning | Size of indexfile is: 69062656 Should be: 5350400 |
| dbname_smf.smf_messages | check | warning | Size of datafile is: 60016460 Should be: 59815740 |
| dbname_smf.smf_messages | check | error | Found 58206 keys of 22894 |
| dbname_smf.smf_messages | check | error | Corrupt |
+---------------------------+-------+----------+---------------------------------------------------------+
6 rows in set (0.02 sec)
mysql> repair table smf_messages
-> ;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 309434
Current database: dbname_smf
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> check table smf_messages
-> ;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 45
Current database: dbname_smf
+---------------------------+-------+----------+---------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+---------------------------+-------+----------+---------------------------------------------------------+
| dbname_smf.smf_messages | check | warning | Table is marked as crashed and last repair failed |
| dbname_smf.smf_messages | check | warning | 1 client is using or hasn't closed the table properly |
| dbname_smf.smf_messages | check | warning | Size of indexfile is: 69062656 Should be: 5350400 |
| dbname_smf.smf_messages | check | warning | Size of datafile is: 60016460 Should be: 59815740 |
| dbname_smf.smf_messages | check | error | Found 58206 keys of 22894 |
| dbname_smf.smf_messages | check | error | Corrupt |
+---------------------------+-------+----------+---------------------------------------------------------+
6 rows in set (0.02 sec)
mysql> repair table smf_messages quick;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 1102
Current database: dbname_smf
+---------------------------+--------+----------+--------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+---------------------------+--------+----------+--------------------------------------------+
| dbname_smf.smf_messages | repair | warning | Number of rows changed from 22894 to 58206 |
| dbname_smf.smf_messages | repair | status | OK |
+---------------------------+--------+----------+--------------------------------------------+
2 rows in set (45.29 sec)
mysql> check table smf_messages;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 1549
Current database: dbname_smf
+---------------------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+---------------------------+-------+----------+----------+
| dbname_smf.smf_messages | check | status | OK |
+---------------------------+-------+----------+----------+
1 row in set (1.96 sec)
mysql>
(Ovviamente il nome del db non è quello) ;D
Ehm... che vuol dire quella schermata? :-?
(sicuramente avra' a che fare con i problemi di connessione al forum che ho avuto fino a 10 minuti fa')
Vuol dire che l'archivio dei messaggi era andato a troie...
Esatto ;D
E' molto semplice cosa voglia dire, basta che leggi i comandi (che sono quelli a fianco di mysql>) e le relative risposte.
Sostanzialmente si era corrotta la tabella dei messaggi (cioè la zona del database dove son salvati tutti i messaggi del forum) e stavolta non si riparava con in semplice "repair table" come era successo tempo fa.
Quindi ho dovuto capire che caxxo fare, dato che di sql non so una sega, e se non fosse stato possibile ripararla avrei dovuto richiedere un restore del forum che probabilmente risale a domenica: avremmo perso 4gg di post compreso il mio utlimo report.
Ti assicuro che avrei rosicato.
deh ma data la grande importanza che ha per la sicurezza nazionale il forumme, non si potrebbe fare un backuppe ogni giorno su una macchina tutta nostra?
Citazione di: festadanzante il 14 Gennaio 2010, 12:34:51
deh ma data la grande importanza che ha per la sicurezza nazionale il forumme, non si potrebbe fare un backuppe ogni giorno su una macchina tutta nostra?
Già farlo in locale sul server sarebbe cosa buona e giusta. Ci credi che sul dominio vecchio avevo messo su una cosa mostruosa che me lo backuppava in locale non avendo neanche accesso shell... qui che ce l'ho e sarebbe una cazzata impostare un cronjob ancora non l'ho fatto.
Mi adopero entro oggi.
C'avete qualcosa che cancella i file più vecchi di tot o che nel nome hanno la data più vecchia di tot (meglio), in bash? ;D
http://www.unix.com/shell-programming-scripting/39909-delete-file-older-than-n-days.html
Uhmmm, dice poco. Mo ce penso io ;D
Citazione di: SunBeam il 14 Gennaio 2010, 12:38:57
Mi adopero entro oggi.
I miei "oggi" sono molto relativi: ho messo su il backup ;D
Citazione
C'avete qualcosa che cancella i file più vecchi di tot o che nel nome hanno la data più vecchia di tot (meglio), in bash? ;D
Per la cronaca:
[bgcolor=orange]
find /home/user/Backup/ -name 'user_*.sql' -mtime +7 -exec rm {} \;[/bgcolor]
Lol
EDIT: sunbeam, le foto le metto oggi
Mannaggiallamad orcatr stobast infamefrac....
Ok! Aspetto fiducioso ;D