[infra](aws Harson)가 브라우저를 업데이트하자 화면 표시가 무너졌다(wordpress)
고정된 IP가 없기 때문에 wordpress의db에 변경이 반영되지 않아 차이가 생겼습니다
rds 로그인
Warning: Permanently added '13.112.121.67' (ECDSA) to the list of known hosts.
Last login: Sun Sep 5 21:48:45 2021 from m106072036034.v4.enabler.ne.jp
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
[ec2-user@ip-10-0-0-240 ~]$ mysql -h database-1.cotqzffqvzlc.ap-northeast-1.rds.amazonaws.com -P 3306 -u wordpress -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 1842
Server version: 8.0.23 Source distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [(none)]>
db 스위치use wordpress
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MySQL [wordpress]>
설정된 웹 사이트의 URLMySQL [wordpress]> SELECT * FROM wp_options WHERE option_name IN ('siteurl', 'home');
+-----------+-------------+---------------------------------------------------------+----------+
| option_id | option_name | option_value | autoload |
+-----------+-------------+---------------------------------------------------------+----------+
| 2 | home | http://LB-1-2105490641.ap-northeast-1.elb.amazonaws.com | yes |
| 1 | siteurl | http://LB-1-2105490641.ap-northeast-1.elb.amazonaws.com | yes |
+-----------+-------------+---------------------------------------------------------+----------+
2 rows in set (0.00 sec)
MySQL [wordpress]>
도메인 이름으로 변경UPDATE wp_options SET option_value = 'https://blog.aws-tano-demo.ga' WHERE option_name IN ('siteurl', 'home');
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
MySQL [wordpress]>
수정 성공 표시MySQL [wordpress]> SELECT * FROM wp_options WHERE option_name IN ('siteurl', 'home');
+-----------+-------------+-------------------------------+----------+
| option_id | option_name | option_value | autoload |
+-----------+-------------+-------------------------------+----------+
| 2 | home | https://blog.aws-tano-demo.ga | yes |
| 1 | siteurl | https://blog.aws-tano-demo.ga | yes |
+-----------+-------------+-------------------------------+----------+
2 rows in set (0.00 sec)
MySQL [wordpress]>
Reference
이 문제에 관하여([infra](aws Harson)가 브라우저를 업데이트하자 화면 표시가 무너졌다(wordpress)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://zenn.dev/tanoken729/articles/c4a0880c83fb7a텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)