반응형
Error
https://www.enterprisedb.com/postgres-tutorials/how-deploy-wordpress-highly-available-postgresql
위 가이드로 리눅스에 워드프레스 설치 중 PostgreSQL과 연동시 아래와 같은 에러 발생.
Warning: pg_connect(): Unable to connect to PostgreSQL server: connection to server at "notworking-db.cnnmdrrkqlx2.ap-northeast-2.rds.amazonaws.com" (172.31.22.51), port 5432 failed: FATAL: database "int_admin" does not exist in /var/www/html/wp-content/pg4wp/driver_pgsql.php on line 105
Fatal error: Uncaught Exception: PG4WP: Not Yet Implemented in /var/www/html/wp-content/pg4wp/driver_pgsql.php:355 Stack trace: #0 /var/www/html/wp-content/pg4wp/core.php(34) : eval()'d code(3946): wpsqli_connect_errno() #1 /var/www/html/wp-content/pg4wp/core.php(34) : eval()'d code(2027): wpdb2->bail() #2 /var/www/html/wp-content/pg4wp/core.php(34) : eval()'d code(767): wpdb2->db_connect() #3 /var/www/html/wp-content/pg4wp/core.php(38): wpdb2->__construct() #4 /var/www/html/wp-content/db.php(53): require_once('...') #5 /var/www/html/wp-includes/load.php(671): require_once('...') #6 /var/www/html/wp-settings.php(124): require_wp_db() #7 /var/www/html/wp-config.php(97): require_once('...') #8 /var/www/html/wp-load.php(50): require_once('...') #9 /var/www/html/wp-blog-header.php(13): require_once('...') #10 /var/www/html/index.php(17): require('...') #11 {main} thrown in /var/www/html/wp-content/pg4wp/driver_pgsql.php on line 355
반응형
Solution
pg4wp 버그인 듯 DB_NAME을 DB_USER로 인식하여 DB를 못찾음..
일차적으로 DB_NAME과 DB_USER 값을 일치시키면 해결됨.
Thank you!
반응형