I'm trying to configuration geonetwork in mysql database, I change the config.xml according to the manual
when I start the server, it has error about the "com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes",it seems that the index length has too long, so what can I do to solve this problem?
I'm trying to configuration geonetwork in mysql database, I change the
config.xml according to the manual
when I start the server, it has error about the
"com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key
was too long; max key length is 767 bytes",it seems that the index length
has too long, so what can I do to solve this problem?
The username column in the Users table is too long.
In web/geonetwork/WEB-INF/classes/setup/sql/create/create-db-mysql.sql
change the username column to varchar(20) instead of varchar(255). Then it
should work just fine.
Remember to drop the existing the tables before you start GeoNetwork again.
I'm trying to configuration geonetwork in mysql database, I change the
config.xml according to the manual
when I start the server, it has error about the
"com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key
was too long; max key length is 767 bytes",it seems that the index length
has too long, so what can I do to solve this problem?
The username column in the Users table is too long.
In web/geonetwork/WEB-INF/classes/setup/sql/create/create-db-mysql.sql
change the username column to varchar(20) instead of varchar(255). Then it
should work just fine.
Remember to drop the existing the tables before you start GeoNetwork again.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork