954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to find and replace in mysql records

Hello Friends,
I've around 1000 records in mysql database. in content table im using image source url like 'img.mydomain.com' so today I've registered new domain. so i want to find replace following domain and update my new domain in image path url. so please let me know how to find/replace???

thanks waiting for reply..

ahmedeqbal
Newbie Poster
14 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

You can update all directly from MySQL

mysql -> UPDATE yourTable SET ON yourField='newLink' WHERE yourField='oldLink'
szabizs
Junior Poster in Training
57 posts since Jul 2009
Reputation Points: 10
Solved Threads: 5
 

szabizs Just gave you the sutff.

However if you really want to search and replace. Please advice and i will script something for you.
;)

richieking
Master Poster
764 posts since Jun 2009
Reputation Points: 61
Solved Threads: 152
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: