var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: create database - mix ecto.create - error
//when I tried to create database, I received this error:
[root@centos66a hello_phoenix]# mix ecto.create
** (Mix) The database for HelloPhoenix.Repo couldn't be created, reason given: psql: FATAL: Ident authentication
failed for user "postgres"
//There is troublesooting that can fix this by creating the "postgres" role with the permissions needed to log in and
create a database.
=# CREATE ROLE postgres LOGIN CREATEDB;
//but when I entered , I received this error:
postgres-# CREATE ROLE postgres LOGIN CREATEDB;
ERROR: syntax error at or near "su"
LINE 1: su - postgres
//but I found that postgres role already exist:
//how can I fix this, please help.
You are not connecting to the server. You need to configure pg_hba.conf.
Ref the documention, chapter 19
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert