0
I can use this code on HphpmyAdmin:
UPDATE `wp_posts` SET `post_content` = REPLACE(`post_content`,
'src="https://www.meusite.com.br/wp-content/uploads/2014/07/tipo.gif" alt="Baixar" width="24" height="24"',
'src="https://www.meusite.com.br/wp-content/uploads/2014/07/tipo.png" alt="Baixar" width="40" height="40"');
But when I use Workbench it generates 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 and reconnect. 0.047 sec
I disabled the safe update but without success.
Could someone give me a light on how to run this REPLACE on the Workbench?
Managed using a WHERE ;-) Thank you Ricardo.
– Robison Luiz Fernandes
@Robisonluizfernandes if the answer was helpful, be sure to accept :)
– Ricardo Pontual