Deprecated: Function WP_Dependencies->add_data() was called with an argument that is deprecated since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/softbeam/hobby/wp-includes/functions.php on line 6131

Deprecated: Function WP_Dependencies->add_data() was called with an argument that is deprecated since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/softbeam/hobby/wp-includes/functions.php on line 6131

Deprecated: Function WP_Dependencies->add_data() was called with an argument that is deprecated since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/softbeam/hobby/wp-includes/functions.php on line 6131

Deprecated: Function WP_Dependencies->add_data() was called with an argument that is deprecated since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/softbeam/hobby/wp-includes/functions.php on line 6131

mysql – string replace

example: replace “www.softbeam.net/wordpress” in field “guid” with “www.softbeam.net/softbeam” for table “wp_posts” in database “softbeam”

show databases;
use softbeam;
show tables;
show fields from wp_posts;
update wp_posts set guid = replace(guid,”www.www.softbeam.net/wordpress”,”www.softbeam.net/softbeam”);

update wp_options set option_value = replace(option_value,”wordpress”,”sofbeam”);
update wp_posts set post_content = replace(post_content,”wordpress”,”softbeam”);

examples :

replace string in all records from a table :
update mytable set myfield = replace (myfield, “one”, “two”);
display a modified record set
SELECT REPLACE(myfield, ‘one’, ‘two’) from mytable;