#312: Easier database setup
-------------------------+--------------------------------------------------
Reporter: osjonathan | Owner: geonetwork-devel@…
Type: enhancement | Status: new
Priority: minor | Milestone: v2.6.0
Component: General | Version: v2.6.0RC2
Keywords: |
-------------------------+--------------------------------------------------
Something I posted to the geonet-users mailing list but doesn't seem to
have been picked up.
My I suggest more consistency and clarity in the config.xml file where it
comes to the jdbc <url>? At present the various default <url> lines look
like this:
<url>jdbc:mckoi://localhost:9157/</url>
<url>jdbc:mysql://$WEBSERVER_HOST/geonetwork</url>
<url>jdbc:oracle:thin:@IP:1521:fs</url>
<url>jdbc:postgresql:geonetwork</url>
At present the various default <url> lines look like this:
<url>jdbc:mckoi://localhost:9157/</url>
<url>jdbc:mysql://$WEBSERVER_HOST/geonetwork</url>
<url>jdbc:oracle:thin:@IP:1521:fs</url>
<url>jdbc:postgresql:geonetwork</url>
i.e. They all specify the IP address and port in a different manner and to
someone new to jdbc (i.e. myself) it's hard to know what part is what,
especially for postgre which isn't showing any connection details.
May I suggest the following instead:
<url>jdbc:mysql://localhost:3306/$DATABASE_NAME</url>
<url>jdbc:oracle:thin:localhost:1521:$SID</url>
<url>jdbc:postgresql:localhost:5432/$DATABASE_NAME</url>
This way all four database connection types are consistent in their
default setup, allowing the user to easily configure them.
(Hint: if you are going to use the above, check them for accuracy; as
noted I am new to JDBC).
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/312>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.