Re: create database on Ubuntu

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: create database on Ubuntu

Narcis Garcia - GiLUG
Did you try with previous steps indicated here?
http://wiki.davical.org/index.php?title=Debian

(mainly "Connecting to the Database")


El 24/12/14 a les 07:27, Divakar R ha escrit:

>     I need help with setting up Davical on Ubuntu Server 14.04 LTS,
>     please I have a working postgres (9.3) server. Apache, php etc are
>     also in place pg_hba.conf has been edited to give required access to
>     davical database as specified. I am now stuck at the command to
>     create the database. A shell script is provided for this purpose
>     which is to be run with the command:
>
>     su postgres -c /usr/share/davical/dba/create-database.sh
>
>     This prompts for a password for the user postgres. On Ubuntu, I do
>     not have a password for the user postgres. I could set a password
>     for this user but then I find no way of telling the pg server about
>     this password. Indeed I have also seen through the posgresql online
>     help and found no solution.
>
>     I have also tried
>
>      sudo ./create-database.sh
>
>     using my password, which results in
>
>     psql: FATAL:  role "root" does not exist
>     psql: FATAL:  role "root" does not exist
>     psql: FATAL:  role "root" does not exist
>     psql: FATAL:  role "root" does not exist
>     psql: FATAL:  role "root" does not exist
>     createdb: could not connect to database template1: FATAL:  role
>     "root" does not exist
>     Unable to create database
>
>
>     Please advise how I can proceed with the installation.
>
>     Thanks and Regards,
>     Divakar
>
>
> Do not Remove:
> [HID]20141224115705670[-HID]
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
>
>
>
> _______________________________________________
> Davical-general mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/davical-general
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general