【发布时间】:2016-11-07 03:37:11
【问题描述】:
这是我对 Scrutinizer 实例的配置:
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: 真 重复:是的
但我无法使用用户 postgres 访问 psql,有什么想法吗?
Access denied for user 'postgres'@'localhost' (using password: YES)
【问题讨论】:
-
这看起来像
mysql错误消息。您的 PHP 代码似乎连接到 MySQL 而不是 Postgres -
@a_horse_with_no_name 好的,让我检查一下
-
@a_horse_with_no_name 非常感谢你是对的。
标签: postgresql psql scrutinizer