Switching Wordpress databases, and I am attempting to run the Search and Replace command to change all the permalinks.
use ruepi;
update [table_name] set [field_name] =
replace([field_name],'[http://131.193.220.64/ruepi]','[http://ruepi.uic.edu]');
I am getting back:
SQL query:
UPDATE [table_name] SET [field_name] = REPLACE( [field_name],
'[http://131.193.220.64/ruepi]', '[http://ruepi.uic.edu]' ) ;
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near '[table_name] set [field_name] =
replace([field_name],'[http://131.193.220.64/rue' at line 1
Not sure exactly where my syntax is wrong? If anyone could look over this real quick.
Edit: Still getting #1146 error, which is the same error I got when previously trying this command:
update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, 'http://131.193.220.64/ruepi',
'http://ruepi.uic.edu/');
ERROR:
Error
SQL query:
UPDATE `table_name` SET `field_name` = 'http://131.193.220.64/ruepi' WHERE
`field_name` = 'http://ruepi.uic.edu';
MySQL said: Documentation
#1146 - Table 'ruepi.table_name' doesn't exist