周日客户问题
问题:Wordpress设置常规里客户将home和siteurl这两个地址栏域名字段改了
解决办法:
-
PhpMyaAdmin
通过数据库管理工具视图化对表结构的字段直接进行修改

- SSH
第一步:使用ssh工具连接终端,确保连接成功!

第二步:输入 "mysql -u root -p" 再输入你数据库的密码,确保开启服务,进入MySQL
mysql -u root -p

第三步:输入 "show database" 查看所有数据库,找到你部署word press的数据库,我这里是mianshi
show database

第四步:输入 "use mianshi" 使用这个数据库
use mianshi

第五步:输入 "select option_name from wp_options" 去查找word press中设置选项表
select option_name from wp_options

第六步:输入 "select * from wp_options where option_name = 'home';" 查找字段为home的信息,发现他的值是客户错误修改过的,我们需要将他更新到之前的值,输入 "update wp_options set option_value="https://xy.xiaoyudazhuzai.top" where option_name = "home";"
select * from wp_options where option_name = 'home';
update wp_options set option_value="https://xy.xiaoyudazhuzai.top" where option_name = "home";


第七步:输入 "select * from wp_options where option_name = 'siteurl';" 查找字段为siteurl的信息,发现他的值是客户错误修改过的,我们需要将他更新到之前的值,输入 "update wp_options set option_value="https://xy.xiaoyudazhuzai.top" where option_name = "siteurl";"
select * from wp_options where option_name = 'siteurl';
update wp_options set option_value="https://xy.xiaoyudazhuzai.top" where option_name = "siteurl";

