Hey Daniel, Dave,<div><br></div><div>Thanks. The problem is solved by settings the pg_hba.conf to trust.</div><div><br></div><div>But I got some error messages like:</div><div>"We DON'T need a way of type  and class </div>
<div>We need a way of type highway and class steps</div><div>We need a way of type highway and class footway</div><div>We need a way of type highway and class steps</div><div>We need a way of type highway and class footway"</div>
<div><br></div><div>Do these errors matter? Or I can ignore them and go to the next step?</div><div><br></div><div>Thanks again,</div><div>Jinfu</div><div><br><div class="gmail_quote">On Wed, May 30, 2012 at 10:44 PM, Daniel Kastl <span dir="ltr"><<a href="mailto:daniel@georepublic.de" target="_blank">daniel@georepublic.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jinfu,<div><br></div><div>Look at the "Note" in the workshop: <a href="http://workshop.pgrouting.org/chapters/osm2pgrouting.html#run-osm2pgrouting" target="_blank">http://workshop.pgrouting.org/chapters/osm2pgrouting.html#run-osm2pgrouting</a></div>


<div>When you don't need to care about server security you can set the settings in pg_hba.conf to trust.</div><div><br></div><div>Daniel<div><div class="h5"><br><br><div class="gmail_quote">On Wed, May 30, 2012 at 8:34 AM, Dave Potts <span dir="ltr"><<a href="mailto:dave.potts@pinan.co.uk" target="_blank">dave.potts@pinan.co.uk</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
>From the text of the error message, it appears your having a problem<br>
connecting to your database, its not a pgroute package error but rather a<br>
postgres error.<br>
<br>
What happens if you try<br>
<br>
psql -d routing -U postgres<br>
<br>
This should connect directly to your database without using any of the<br>
routing software.<br>
<div><div><br>
<br>
<br>
<br>
Jinfu Leng wrote:<br>
> Hello all,<br>
><br>
> I created the database "routing" from the "template_routing", and<br>
> downloaded the .osm file of London. But I got a problem when I was trying<br>
> yo import this .osm file to the database.<br>
><br>
> command:<br>
> "osm2pgrouting -file "London.osm" -conf<br>
> "/usr/share/osm2pgrouting/mapconfig.xml" -dbname routing -user postgres<br>
> -clean"<br>
> error message:<br>
> "connection failed"<br>
><br>
> Any ideas?<br>
><br>
> Thanks a advance.<br>
> Jinfu<br>
</div></div>> _______________________________________________<br>
> pgrouting-dev mailing list<br>
> <a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
><br>
<span><font color="#888888"><br>
<br>
--<br>
<br>
<br>
_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>
eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>

Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span><br>
</font></span></div>
<br>_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br></blockquote></div><br></div>