Hi, my /etc/midgard/conf.d/midgard.conf file looks like this:

[Database]
Type=Mysql
Host=
Name=midgard
Username=midgard
Password=midgard
Encoding=utf-8
Blobdir=
Schema=/usr/share/midgard/schema/MgdObjects.xml
Logfile=/tmp/midgard-cli.log
Loglevel=debug


then:
mgd_config_init('midgard.conf');
mgd_auth_midgard(...

Tarjei

On Sat, 2005-10-08 at 15:27 +0200, David Schmitter wrote:
> Hello
> 
> How am I supposed to run Midgard from the command line?
> 
> I have got the following test script:
> 
> #!/usr/bin/php
> <?
> mgd_config_init('midgard.conf');
> $midgard = mgd_get_midgard();
> print_r($midgard);
> echo mgd_errstr();
> ?>
> 
> While /etc/midgard/conf.d/midgard.conf looks as follows:
> 
> Name=midgard
> Username=midgard
> Password=midgard
> 
> midgard:midgard is a valid login for database midgard on localhost.
> 
> When I run the test script, Mysql records a successful connection in its
> log.
> 
> However, the script says:
> 
> "Not connected to the Midgard database"
> 
> I am using Midgard from CVS with php 4.3.10.
> 
> Thanks for any hints.
> 
> David
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Tarjei Huse <[EMAIL PROTECTED]>


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

Reply via email to