Find and replace entire mysql database

后端 未结 12 2168
走了就别回头了
走了就别回头了 2020-11-27 13:16

i would like to do a find and replace inside an entire database not just a table.

How can i alter the script below to work?

 update [table_name] set          


        
12条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 13:53

    BE CAREFUL, when replacing with REPLACE command!

    why?

    because there is a great chance that your database contains serialized data (especially wp_options table), so using just "replace" might break data.

    Use recommended serialization: https://puvox.software/tools/wordpress-migrator

提交回复
热议问题