Morning; I am afraid MySQL is not used very much for spatial data making it
hard for anyone with experience to help you. Experience asks people to move
on.
For the definitive answer to any MySQL connection problems you need to look
at the source code "test cases" which is what we use to verify it works.

The factory has a chance to indicate that it is "not available" - usually it
checks to see if the driver is around or not. I think you can turn on
additional logging in order to see connection failures of this nature?

Please note that MySQLDataStore does not exist anymore it has been replaced
with a single "JDBC" datastore".

When you do get a code example working can you please share it with the
email list here as I would like to update the docs for the next person.

Jody

On Mon, Jul 18, 2011 at 6:43 PM, lexmc <[email protected]> wrote:

> I'm trying to run this code:
> Map&lt;String, Object&gt; params = new HashMap&lt;String, Object&gt;();
>
>                        params.put(MySQLDataStoreFactory.DBTYPE.key,
> "mysql");
>                        params.put(MySQLDataStoreFactory.HOST.key,
> "localhost");
>                        params.put(MySQLDataStoreFactory.PORT.key, 3309);
>                        params.put(MySQLDataStoreFactory.DATABASE.key,
> dataBase);
>                        params.put(MySQLDataStoreFactory.USER.key, user);
>                        params.put(MySQLDataStoreFactory.PASSWD.key,
> password);
>
>                        DataStore
> dataStore=DataStoreFinder.getDataStore(params);
>                        featureSource  = dataStore.getFeatureSource("test");
>
> but MySQLDataStoreFactory is not recognised. What can I do to fix??? I'm
> using geotools 8-snapshot.
>
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/MySQLDataStoreFactory-cannot-be-resolved-to-a-variable-tp6593901p6593901.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to