Page 1 of 1

not enought arguments

Posted: Wed Mar 30, 2016 6:25 am
by newyorknix
My hosting provider installed PostgreSQL and VestaCP separately. I'm trying to connect PostgreSQL to VestaCP. I followed documentation guided here and got error in this step

v-add-database-host pgsql localhost postgres pgp4sw0rd
I got this
Error: not enought arguments
Usage: v-add-database-host TYPE HOST DBUSER DBPASS [MAX_DB] [CHARSETS] [TPL]
I'm not sure what to enter [MAX_DB] [CHARSETS] [TPL] for these attributes (I can test randomly but am kinda scared to)

Is there anyway to find default ones... I searched with various keywords but can find exact terms but can't find an example like

v-add-database-host pgsql localhost postgres pgp4sw0rd 100 [ns1] TPL
Kindly help me in this regard

Re: not enought arguments

Posted: Fri Apr 15, 2016 7:08 am
by BBuchanan1013
newyorknix wrote:My hosting provider installed PostgreSQL and VestaCP separately. I'm trying to connect PostgreSQL to VestaCP. I followed documentation guided here and got error in this step

v-add-database-host pgsql localhost postgres pgp4sw0rd
I got this
Error: not enought arguments
Usage: v-add-database-host TYPE HOST DBUSER DBPASS [MAX_DB] [CHARSETS] [TPL]
I'm not sure what to enter [MAX_DB] [CHARSETS] [TPL] for these attributes (I can test randomly but am kinda scared to)

Is there anyway to find default ones... I searched with various keywords but can find exact terms but can't find an example like

v-add-database-host pgsql localhost postgres pgp4sw0rd 100 [ns1] TPL
Kindly help me in this regard
Ok, so break it down.
Type = Postgresql
host = localhost
dbuser = the actual username
dbpass = the password for the user
max_db = 500 (my guess is it's either the max size or the max number of rows)
charsets = UTF8,LATIN1,WIN1250,WIN1251,WIN1252,WIN1256,WIN1258,KOI8 (the character. I stick to utf8 as it covers alot)
tpl = As far as I can guess, it's a template within vesta itself