मुझे विश्वास है कि "स्वपनेश" का जवाब सबसे अच्छा है! दुर्भाग्य से मैं इसे phpMyAdmin (4.5.0 में निष्पादित नहीं कर सका।2) जो हालांकि अजीब (और कई चीजों की कोशिश की) यह कहता रहा कि एक नया बयान पाया गया था और कोई भी डिलीमीटर नहीं मिला ...
इस प्रकार मैं निम्नलिखित समाधान के साथ आया जो उपयोगी हो सकता है यदि आप एक ही मुद्दे को अपनाना चाहते हैं और पीएमए से डेटाबेस के लिए कोई अन्य पहुँच ...
UPDATE `wp_posts` AS `toUpdate`,
(SELECT `ID`,REPLACE(`guid`,'http://old.tld','http://new.tld') AS `guid`
FROM `wp_posts` WHERE `guid` LIKE 'http://old.tld%') AS `updated`
SET `toUpdate`.`guid`=`updated`.`guid`
WHERE `toUpdate`.`ID`=`updated`.`ID`;
परीक्षण करने के लिए की उम्मीद आप उपयोग कर सकते हैं परिणाम:
SELECT `toUpdate`.`guid` AS `old guid`,`updated`.`guid` AS `new guid`
FROM `wp_posts` AS `toUpdate`,
(SELECT `ID`,REPLACE(`guid`,'http://old.tld','http://new.tld') AS `guid`
FROM `wp_posts` WHERE `guid` LIKE 'http://old.tld%') AS `updated`
WHERE `toUpdate`.`ID`=`updated`.`ID`;
संभव http://stackoverflow.com/questions/639531/mysql-search- की डुप्लीकेट इन-ऑल-फ़ील्ड-से-प्रत्येक-टेबल-से-डेटाबेस-डेटाबेस – sel
आप कुछ ऐसा कर सकते हैं जैसे [यह] [1]। [1]: http://stackoverflow.com/questions/562457/search-for-all-occurrences-of-a-string-in-a-mysql-database/10182498#10182498 – Pramod
[यह ] (https://github.com/interconnectit/Search-Replace-DB) आपको जो चाहिए उसे प्राप्त करने में आपकी सहायता करेगा। – Dom