Bloc d'en manel

  • Wednesday Sep 08th

Articles per data

  • 2010 (5)
  • 2009 (38)
  • 2008 (41)
  • 2007 (13)
  • Temps a Sentmenat

    Partly CloudyPartly Cloudy (77oF • 25oC)
    Humidity: 41%
    Wind: E at 8 mph
    Wed 57 - 73 oF » Chance of Rain «
    Thu 59 - 75 oF » Chance of Rain «
    Fri 57 - 75 oF » Clear «

    Tabla corrupta en mysql

    Correu electrònic Imprimeix PDF
    Valoració d'usuari: / 0
    PitjorMillor 

    Hola a todos,
    Cada día se aprende algo nuevo, y hoy a sido de mysql, y más concretamente en este blog, daba el siguiente error:


    DB function failed with error number 145
    Table './la bbdd/la tabla' is marked as crashed and should be repaired SQL=INSERT INTO manelbloc_session ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES ( b1caaf8b92a75a009434c3146cefa0ab','1207867176','','0','1','0' )

    No os desespereis, es que se ha corrompido la tabla. Al parecer es un error bastante frecuente según dicen (yo llevo más de 5 años con mysql y nunca me habia pasado) y se soluciona accediendo a la consola de mysql (via terminal, mysqladministrator o phpmyadmin) y poner el siguiente comando
    repair table (la tabla);
    Al parecer si la tabla es bastante grande tarda lo suyo, así que no os desespereis, si tarda en mostrar el resultado
    Os dejo un ejemplo:

    mysql> use manelnew

    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A
    Database changed
    mysql> repair table manelbloc_session
    -> ;
    +----------------------+--------+----------+----------+
    | Table | Op | Msg_type | Msg_text |
    +----------------------+--------+----------+----------+
    | manelnew.manelbloc_session | repair | status | OK |
    +----------------------+--------+----------+----------+
    1 row in set (0.02 sec)

    mysql> use bbdd (si se hace por consola y no obstante no viene mal)
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A
    Database changed

    mysql> repair table (la tabla);

    +----------------------+--------+----------+----------+

    | Table | Op | Msg_type | Msg_text |

    +----------------------+--------+----------+----------+

    | bbdd.tabla | repair | status | OK |

    +----------------------+--------+----------+----------+

    1 row in set (0.02 sec)

    P.D. Si no funciona pues a tirar de backup

     

    Comments  

     
    0 #1 Sergio 2009-09-09 08:00 Pues ahora ya sólo te falta reparar no una tabla sino una bbdd corrupta y Oracle. Venga que ya tardas! jeje! Eso sí, si lo haces eres un crack nen!

    Me ha hecho mucha gracia el PD. Si no funciona pues a tirar de backup… y si el último bueno es de hace un mes y medio! jeje!
    Quote
     

    Add comment


    Security code
    Refresh

    cheap cialis | cialis generic canada | cialis sales | cialis no prescription | free viagra samples | order viagra | viagra generic | cialis online no prescription | viagra samples | viagra information | cheap cialis | cheap viagra online | real viagra | cialis coupon | buy viagra online