database - MySQL error: The maximum column size is 767 bytes -


when run program mysql, got error message:

2015-06-10 15:41:12,250 error app.wsutils 419 incron: error: ('hy000', '[hy000] [mysql][odbc 5.2(w) driver][mysqld-5.7.7-rc-log]index column size large. maximum column size 767 bytes. (1709) (sqlexecdirectw)')

i googled little bit, , found error might relating innodb_large_prefix option. however, using mysql 5.7.7 rc, has set innodb_large_prefix "on" (checked in mysql workbench), allowing 3072 bytes. not sure if problem innodb_large_prefix or not.

anyway, have idea how fix problem?

your column trying index large , settings must not correct innodb_large_prefix. there couple prerequisites parameters have set in order innodb_large_prefix work correctly.

you can check make sure innodb_large_prefix set running:

show global variables 'innodb_lar%';

here couple prerequisites using innodb_large_prefix:

you need set global variable innodb_file_format=barracuda

to check settings run: show global variables 'innodb_fil%';

at table level have use row_format=dynamic or row_format=compressed

for innodb, rows stored in compact format (row_format=compact) default.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -