若是不會sql語句的話,就直接在mysql管理頁面修改mysql
sql語法sql
UPDATE
表名
SET
字段
=
REPLACE
(字段,'替換內容',
'
替換值');
替換一個字段的一些內容.
表smc_options裏有siteurl和home的值,
update
smc_options
set
option_value
=
replace
(option_value,
'
localhost
'
,
'
你的域名
'
);
更正文章中內部連接及附件的地址:
文件內部若是有相關的鏈接和附件的地址,更正以下
UPDATE
smc_posts
SET
post_content
=
REPLACE
(post_content,
'
替換內容
'
,
'
替換值
'
);
更改文件的永久連接
UPDATE
smc_posts
SET
guid
=
REPLACE
(guid,
'
替換內容
'
,
'
替換值
'
);
更正博客用戶裏你的網站連接:(若是你的我的資料裏沒有填你的博客地址,可忽略)
UPDATE
smc_users
SET
user_url
=
REPLACE
(user_url,’替換內容’,
'
替換值’);
更正評論者資料裏你的博客連接:
UPDATE
wp_users
SET
user_url
=
REPLACE
(user_url,’替換內容’,
'
替換值’);
更正評論內容你的博客連接:(若是評論裏沒有你博客連接,可忽略)
UPDATE
wp_users
SET
comment_content
=
REPLACE
(comment_content,’替換內容’,
'
替換值’);