It tries to connect to the DB without a password and spits an error...

Is there any other place where the DB user:password to connect is stored?

On Fri, 18 Jun 2004 11:28:02 +0200, Piotras <[EMAIL PROTECTED]> wrote:
> 
> Jorge Gutierrez <[EMAIL PROTECTED]> wrote:
> 
> > There is a problem with the mysql connection.
> >
> > # /usr/local/bin/midgard-pageresolve
> > Connecting to mysql://midgard:<hidden>@localhost/midgard
> > RESULT: Error in DB connection
> >
> 
> You could try this script.
> 
> ------------------------------------------------------------
> 
> #!/bin/sh
> 
> . /usr/local/share/midgard/datagard/path.config
> . /usr/local/share/midgard/datagard/lib.config
> . /usr/local/share/midgard/datagard/lib.postinst
> 
> mgd_get_config_data MGD_DB_USER_NAME
> MGD_USER="$RET"
> 
> mgd_get_config_data MGD_DB_USER_PASS
> MGD_PASS="$RET"
> 
> mgd_get_config_data MGD_DB_NAME
> MGD_DB="$RET"
> 
> MYSQL_CMD="$MYSQL_BIN --user=$MGD_USER --password=$MGD_PASS"
> 
> $MYSQL_CMD -v -D $MGD_DB -e 'select * from host' > /tmp/midgard.log 2>&1
> 
> mgd_info "`cat /tmp/midgard.log`"
> 
> ---------------------------------------------------------------
> 
> 
> 
> Piotras
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 


/jorge

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to