You are on page 1of 2
MySQL. Error code 1175 Alejecutar una sentencia en MySQL Workbench devolvfa el siguiente error: Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor -> Query Editor and reconnect. Desde la versi6n 5.2.26 viene la opcién safe-update [actualizacién en modo seguro) establecida por defecto. Esto significa que no se puede modificar ningiin registro (Delete, Update, Truncate) sin especificar la clave en la clauisula Where. + Para deshabilitar el modo seguro podemos ejecutar la sentenciar SET SQL_SAFE_UPDATES = 0; (Siqueremos volvera habilitarlo seria simplemente ejecutar la misma sentencia igualandolo a1 o true). + Obien, como nos indica el mensaje de error, iral menti Edit» Preferences y en la pestafla SQL Editor, desmarcar la opcién “Safes Updates” Forbid UPDATEs and DELETES with no key in WHERE clause or no LIMIT clause. Requires a reconnection. Y volver 2 conectamos. Gensel Eatore le scx tor Query Eator SOL Erection [> Medstng soe Diagram SOL Eaor 1 Save snapshot of open extas on close io-save cps in (30 seco |v) Here's Crentenew tabs as Quay tabs stead of le 1 Restore exoard state of te ace senema obits Sidebar ¥ Combine Management ols ana Schema Tee ys04 Session [DOM ernecton keep ave interval in secon | 600 ‘Dems carmection rea ume ou (in Secon: [600 other Intenal Watibech Scher [moyscinertbench 1 ford POATES and DELETE with rnin WHERE cl Lt Requires areconractin,

You might also like