0
這是我Scrutinizer實例配置:Scrutinizer - PSQL - 訪問與Postgres的用戶拒絕
build:
dependencies:
before:
- psql -c 'CREATE DATABASE db_name WITH OWNER scrutinizer;'
- psql -c "ALTER ROLE postgres WITH PASSWORD 'postgres'"
- psql -c 'GRANT ALL PRIVILEGES ON DATABASE "db_name" to postgres'
- cp .env.example .env
project_setup:
override:
- true
environment:
php:
version: 7.0.6
node: 4.0
variables:
APP_KEY: 'app_key'
BUGSNAG_API_KEY: 'test'
tests:
override:
-
command: vendor/bin/phpunit -v --debug --coverage-clover=my-coverage-file --configuration phpunit.xml
coverage:
file: my-coverage-file
format: php-clover
檢查: PHP: code_rating:真 重複:真
,但我不能訪問PSQL與用戶postgres,任何想法?
Access denied for user 'postgres'@'localhost' (using password: YES)
這看起來像一個'mysql'錯誤消息。看起來你的PHP代碼連接到MySQL而不是Postgres –
@a_horse_with_no_name好吧,讓我檢查 – bizzr3
@a_horse_with_no_name非常感謝你是對的。 – bizzr3