Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LBR MySQL Small ODM2 example fails to load in MySQL 5.7 #74

Open
miguelcleon opened this issue Mar 13, 2017 · 2 comments
Open

LBR MySQL Small ODM2 example fails to load in MySQL 5.7 #74

miguelcleon opened this issue Mar 13, 2017 · 2 comments

Comments

@miguelcleon
Copy link
Member

The latest version of MySQL (5.7) won’t load the samplingfeature geometries in the LBR database (https://github.com/ODM2/ODM2/blob/master/usecases/littlebearriver/sampledatabases/odm2_mysql/LBR_MySQL_SmallExample.sql). Importing the database fails while loading samplingfeatures on MySQL 5.7. So right now you need version 5.6 if your installing MySQL fresh.

This post on stack over flow discusses this problem:

http://stackoverflow.com/questions/34311195/mysql-import-cannot-get-geometry-object-from-data-you-send-to-the-geometry-fiel

@emiliom
Copy link
Member

emiliom commented Mar 13, 2017

For follow-ups, the error apparently is this one (based on the stack overflow thread, above):

Error 'Cannot get geometry object from data you send to the GEOMETRY field' on query.

And here's a Google search on that error message and MySQL 5.7, to help us get at the source of this problem.

My hunch is that this isn't a fundamental incompatibility with 5.7 per se, but rather an issue with how the MySQL LBR SQL load file was created (with a previous MySQL version) that makes it less portable for loading into newer MySQL versions. Will need to investigate.

@emiliom
Copy link
Member

emiliom commented Mar 13, 2017

Forgot to add: As mentioned in our installation document, the LBR test database has been successfully tested with MySQL 5.6 and 5.5 (not just 5.6).

@emiliom emiliom changed the title LBR MySQL Small example fails to load in MySQL 5.7 LBR MySQL Small ODM2 example fails to load in MySQL 5.7 Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants