I'm attempting to switch from H2 to MySQL in our development environment
(RHEL 6, GeoNetwork 3.0.4.0, MySQL 5.6.25 InnoDB) and have run into some
issues.
What I've done is edit these two files:
(1) .../tomcat/webapps/geonetwork/WEB-INF/config-node/srv.xml
* Commented out the reference to H2, uncommented the reference to mysql.
(2) .../tomcat/webapps/geonetwork/WEB-INF/config-db/jdbc.properties
* Filled in the data for the MySQL host, db name, username, password.
When I restart Tomcat I got a screen dump of errors, one being an SQL
for {dbname}.settings not being found. I used a MySQL command-line
client to access the geonet DB, and do see that a schema was created.
I renamed 'Settings' to lower-case 'settings', manually via a MySQL
client, and that error went away -- but I suspect there may be others,
since the other table names have caps in them.
More research https://zihengsun.wordpress.com/) suggests that you need
to edit my.cnf and make table names case-insensitive on a Linux
environment. Unfortunately, we are hosting this on an enterprise MySQL
service and are probably unable to have that change made.
Is there something else I've missed, or some other way approach using MySQL?
Regards,
--
Paul F. Bramscher
brams006@anonymised.com
612-626-2098
University of Minnesota Libraries
PGP Public Key: http://z.umn.edu/brams006pubkey