Can someone please tell me what the SQL Command line is to update a field. For example, the table name is wp_usermeta, the fields are meta_key and meta_value. I'm looking to replace a:1:{s:6:"author";b:1;},with a:1:{s:11:"contributor";s:1:"1";} which is under field meta_value throughout the field. I hope I explained it well, any help would be greatly appreciated.
Use MySQL's REPLACE() function. See MySQL manual on using function (http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace)
Query would be something like this: UPDATE wp_usermeta SET meta_value = REPLACE(meta_value, 'a:1:{s:6:"author";b:1;}', 'a:1:{s:11:"contributor";s:1:"1";}'); Code (markup):