闲来无事,看见 设置--常规 有个WordPress地址(URL)和站点地址(URL),手贱把两个地址后面的/wordpress 后缀去掉了,结果造成博客后台无法登录,文章页面排版混乱。

解决办法:

Linux中进入mysql

mysql> show databases; #显示有哪些数据库
mysql> use wordpress;  #选择使用wordpress的数据库
mysql> show tables;  #显示有哪些表
select * from wp_options limit 0,5 ; #查询wp_options表中的内容,并只查看前5行
update wp_options set option_value="http://www.zhaoyongtao.top/wordpress" where option_name="siteurl"; 
update wp_options set option_value="http://www.zhaoyongtao.top/wordpress" where option_name="home";

改好就可以访问了。