Practice01에서 생성한 RDS의 포트는 33306으로 변경해 다시 Wordpress와 연동하라.
[root@rds html]# vi wp-config.php
/** Database username */
define( 'DB_USER', 'root' );
/** Database password */
define( 'DB_PASSWORD', 'test1234' );
/** Database hostname */
define( 'DB_HOST', 'database-1.cb7gp3ktrwhs.ap-northeast-2.rds.amazonaws.com**:33306**' );
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );
/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
인스턴스 수정 - 연결 - 추가구성 수정

인바운드 규칙 편집

[root@rds html]# mysql -u root -ptest1234 -h database-1.cb7gp3ktrwhs.ap-northeast-2.rds.amazonaws.com --port 33306
[root@rds html]# mysql -u root -ptest1234 -h database-1.cb7gp3ktrwhs.ap-northeast-2.rds.amazonaws.com --port 33306
Welcome to the MariaDB monitor. Commands end with ; or \\g.
Your MariaDB connection id is 5
Server version: 10.6.10-MariaDB managed by <https://aws.amazon.com/rds/>
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.
MariaDB [(none)]>