Logo

워드프레스 siteurl 수정하기

MariaDB [webhost2]> desc wp_options;
+————–+———————+——+—–+———+—————-+
| Field | Type | Null | Key | Default | Extra |
+————–+———————+——+—–+———+—————-+
| option_id | bigint(20) unsigned | NO | PRI | NULL | auto_increment |
| option_name | varchar(191) | NO | UNI | | |
| option_value | longtext | NO | | NULL | |
| autoload | varchar(20) | NO | MUL | yes | |
+————–+———————+——+—–+———+—————-+
4 rows in set (0.001 sec)

MariaDB [webhost2]> select * from wp_options where option_name=’siteurl’;
+———–+————-+—————————–+———-+
| option_id | option_name | option_value | autoload |
+———–+————-+—————————–+———-+
| 2 | siteurl | http://www.webhost.co.kr/wp | on |
+———–+————-+—————————–+———-+
1 row in set (0.000 sec)

MariaDB [webhost2]> update wp_options set option_value=’http://demo9.webhost.co.kr/wp’ where option_value=’http://www.webhost.co.kr/wp’;
Query OK, 2 rows affected (0.002 sec)
Rows matched: 2 Changed: 2 Warnings: 0

MariaDB [webhost2]> flush privileges;
Query OK, 0 rows affected (0.008 sec)

MariaDB [webhost2]>

워드프레스에 사이트주소가 잘못된 경우 접속이 안됩니다.

이때 mysql db에서 바로 수정하는 방법입니다.

기록 : 2025-03-21

Prev linux hdd 제조사 확인
Next Linux server 초기 퍼미션 설정

Leave a comment