mysql - #1064 Syntax Error, Simple Search and Replace Command? -


switching wordpress databases, , attempting run search , replace command change permalinks.

use ruepi; update [table_name] set [field_name] =        replace([field_name],'[http://131.193.220.64/ruepi]','[http://ruepi.uic.edu]'); 

i 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 - have error in sql syntax; check manual corresponds  mysql server version right syntax use near '[table_name] set [field_name] =  replace([field_name],'[http://131.193.220.64/rue' @ line 1  

not sure syntax wrong? if on real quick.

edit: still getting #1146 error, same error got when trying 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'   `field_name` =  'http://ruepi.uic.edu';   mysql said: documentation  #1146 - table 'ruepi.table_name' doesn't exist  

this not valid mysql command i.e. using [] column names

should as

update table_name set field_name =        replace(field_name,'http://131.193.220.64/ruepi','http://ruepi.uic.edu'); 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -