<div dir="ltr">thanks,It looks really a great solution.I will try that.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 16, 2017 at 12:27 PM, Yedidyah Bar David <span dir="ltr"><<a href="mailto:didi@redhat.com" target="_blank">didi@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Mar 15, 2017 at 10:42 PM, Martin Perina <<a href="mailto:mperina@redhat.com">mperina@redhat.com</a>> wrote:<br>
> Hi,<br>
><br>
> I think you have forgotten 'su' command at beginning, correct commands are:<br>
><br>
> su - postgres -c "psql -d template1 -c \"create user engine password<br>
> 'engine';\""<br>
> su - postgres -c "psql -d template1 -c \"create database engine owner<br>
> engine template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype<br>
> 'en_US.UTF-8';\""<br>
><br>
<br>
</span>You can also use this:<br>
<br>
/usr/share/ovirt-engine/setup/<wbr>bin/ovirt-engine-provisiondb<br>
--otopi-environment="OVESETUP_<wbr>PROVISION_DB/database=str:<wbr>engine<br>
OVESETUP_PROVISION_DB/user=<wbr>str:engine<br>
OVESETUP_PROVISION_DB/<wbr>password=str:mypassword"<br>
<br>
It should do "everything" - initdb, create user and db, configure pg, etc.<br>
<br>
If you messed up your pg setup and want to start from scratch (which you<br>
at least partially did, if you have bad permissions on pg_hba.conf), you<br>
can do this:<br>
<br>
1. Disconnect everything that's connected to pg, if any<br>
2. systemctl stop postgresql<br>
3. rm -rf /var/lib/pgsql/data<br>
<br>
Then try again (following the web page or using above command).<br>
<br>
Best,<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Martin<br>
><br>
><br>
> On Wed, Mar 15, 2017 at 5:30 PM, shubham dubey <<a href="mailto:sdubey504@gmail.com">sdubey504@gmail.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>> I am trying to setup ovirt-engine using this link<br>
>> <a href="http://www.ovirt.org/develop/developer-guide/engine/engine-development-environment/" rel="noreferrer" target="_blank">http://www.ovirt.org/develop/<wbr>developer-guide/engine/engine-<wbr>development-environment/</a>.<br>
>> Now when I am trying these commands I am getting following error<br>
>> $postgres -c "psql -d template1 -c \"create user engine password<br>
>> 'engine';\""<br>
>> FATAL: -c psql -d template1 -c "create user engine password 'engine';"<br>
>> requires a value<br>
>><br>
>> and<br>
>> $postgres -c "psql -d template1 -c "create database engine \<br>
>> owner engine template template0 encoding 'UTF8' lc_collate \<br>
>> 'en_US.UTF-8' lc_ctype 'en_US.UTF-8';\""<br>
>> FATAL: -c psql -d template1 -c "create database engine owner engine<br>
>> template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype<br>
>> 'en_US.UTF-8';" requires a value<br>
>><br>
>> So I think the syntax given there is not right,So can anyone tell me the<br>
>> correct syntax.Or maybe I am doing something wrong.<br>
>><br>
>> Thanks,<br>
>> Shubham<br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Devel mailing list<br>
>> <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
>> <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Didi<br>
</font></span></blockquote></div><br></div>