主页保存在数据库wp_options表中
mysql> select * from wp_options where option_name="siteurl";
+-----------+-------------+--------------------------+----------+
| option_id | option_name | option_value | autoload |
+-----------+-------------+--------------------------+----------+
| 1 | siteurl | https://www.sharezer.com | yes |
+-----------+-------------+--------------------------+----------+
1 row in set (0.00 sec)
mysql> select * from wp_options where option_name="home";
+-----------+-------------+--------------------------+----------+
| option_id | option_name | option_value | autoload |
+-----------+-------------+--------------------------+----------+
| 2 | home | https://www.sharezer.com | yes |
+-----------+-------------+--------------------------+----------+
1 row in set (0.00 sec)
以下案例更新主页:
mysql> UPDATE wp_options SET option_value = 'http://192.168.1.207:7008' WHERE option_name = 'home';
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> UPDATE wp_options SET option_value = 'http://192.168.1.207:7008' WHERE option_name = 'home';
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: