wordpress地址栏显示域名需要配置 site address
但如果设置出错会导致管理页面访问不了
这样只能在后台数据库修改
通过命令行进入数据库,找到新建的数据库,所有的配置表在prefix_options中,我的设置为wp前缀,所以表
名称为wp_options
通过option_name,option_value存储一个配置选项
其中下图的两个url对于的option_name 为siteurl和home
于是我们通过以下两条sql语句设置你想要的url即可
mysql> update wp_options SET option_value=‘http://你的域名’ where option_name=‘home’;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> update wp_options SET option_value=‘http://你的域名’ where option_name=‘siteurl’;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
欢迎关注我的公众号,教你学会路由器刷机、智能路由器开发