Gần đây tôi đã cài đặt postgresql 9.1 và pgadmin3. Nhưng tôi không thể kết nối đến máy chủ mà tôi tạo ra với cấu hình này:kết nối máy chủ pgadmin3 và lỗi xác thực
name: mydb
host: 127.0.0.1
port: 5432
service:
Maintenance DB: postgres
username: postgres
password: *
Theo vấn đề tương tự tôi đã thiết lập tập tin /etc/postgresql/9.1/main/pg_hba.conf
tôi dưới ubuntu 12.04 LTS như thế này:
local all postgres md5
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
host all all localhost trust
Nhưng khi tôi muốn kết nối đến máy chủ tôi nhận được lỗi này:
Error connecting to the server: FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres"
Khi nào bạn tạo một người dùng 'postgre' và gán cho nó một mật khẩu? –