PDOException: SQLSTATE[HY000]: General error: 145 Table './mapibrasil/watchdog' is marked as crashed and should be repaired: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => file [:db_insert_placeholder_2] => The file permissions could not be set on %uri. [:db_insert_placeholder_3] => a:1:{s:4:"%uri";s:18:"public://languages";} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://brasil.machupicchu.biz/ [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => [:db_insert_placeholder_9] => 1403795901 ) em dblog_watchdog() (linha 160 de /srv/www/machupicchu.biz/public_html/modules/dblog/dblog.module).

closed as unclear what you're asking by kiamlaluno Jun 23 '17 at 8:41

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


Not a drupal question, but you need to repair your table in the MYSQL database, if you can access the db server via command line:

REPAIR TABLE <table name>; 

Otherwise, tools like phpmyadmin have repair tools, check this tutorial: http://www.siteground.com/tutorials/phpmyadmin/phpmyadmin_optimize_database.htm

  • 2
    Also make sure you disk isn't full. That could have caused the problem in the first place. – mpdonadio Jun 26 '14 at 16:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.