0
Google 애플리케이션 엔진을 사용하여 배포 한 Laravel 5.3 애플리케이션이 있습니다. 내가 내 데이터베이스를 조회 할 때, 나는 다음과 같은 오류에 직면하고있다 :연결이 거부되었습니다 - Google Cloud SQL에 연결
runtime: php
env: flex
runtime_config:
document_root: public
# required on some platforms so ".env" is not skipped
skip_files: false
env_variables:
# The values here will override those in ".env". This is useful for
# production-specific configuration. However, feel free to set these
# values in ".env" instead if you prefer.
APP_LOG: errorlog
STORAGE_DIR: /tmp
MYSQL_DSN: mysql:unix_socket=/cloudsql/zoho-portal-159018:us-central1:zoho-portal;dbname=zoho_portal
MYSQL_USER: adeel
MYSQL_PASSWORD: pass
beta_settings:
cloud_sql_instances: zoho-portal-159018:us-central1:zoho-portal
내가 this 튜토리얼에 나와있는 모든 단계를 따라했습니다 다음과 같이
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `users` where `email` = [email protected] limit 1)
내 app.yaml
파일의 내용은 다음과 같습니다. Cloud SQL API가 활성화되어 있는지 확인했습니다.
이 특정 [Laravel on GAE Flex 가이드] (https://cloud.google.com/community/tutorials/run-laravel-on-appengine-flexible)를 따르십시오. 가이드에 표시된대로 app.yaml의 'cloud_sql_instances'연결 이름을 따옴표 '' '로도 사용하십시오. – Jordan
안내에 따라 지침에 따라 app.yaml 파일을 업데이트했습니다. 오류가 발생했습니다. (https://zoho-portal-159018.appspot.com/) SQLSTATE [HY000] [2002] 해당 파일이나 디렉토리가 없습니다 (SQL : select * from'sessions' from 'id' = ySejUS01EZ5kRcZQrrFh8RcMdVybiOfVjio9vNW0 제한 1) 데이터베이스 구성 방법과 관련이 있습니까? –