-
Notifications
You must be signed in to change notification settings - Fork 6
error creating user table: Error: ER_TOO_LONG_KEY: Specified key was too long; max key length is 767 bytes #98
Comments
Try brew update and then brew upgrade mysql On Friday, January 9, 2015, Peter deHaan notifications@github.com wrote:
|
but but but... i just installed mysql... I'm very suspicious because THIS worked like a champ:
I got the idea from this StackOverflow answer where somebody said that you should switch to 'latin1' instead of 'utf8' since it takes one byte for one character instead of four. Possible BS, but I can probably test the theory by fudging the field length until it passes.
|
|
I had that same issue but was running .21 or something. Upgraded and it On Friday, January 9, 2015, Peter deHaan notifications@github.com wrote:
|
I'm also seeing this when trying to populate w/ dummy data:
Full debug log:
|
@pdehaan what my.cnf files do you have on your system? |
@pdehaan After taking a second look at fxa-auth-db-server, it looks like they use varchar(255) for the email field. So we'll use that. I'll just merge it now. For future reference, your behavior matches up with this mysql bug which was WONTFIX'd with the rationale that |
Should be fixed by #99. Reopen if it's still busted for you |
I'm using OSX Yosemite and just did a
$ brew update
and$ brew install mysql
then$ mysql.server start
.Running
$ node server/db/create_db
gives me some odd errors I can't decipher and stalls my Terminal:Note that the process doesn't end and I have to Ctrl+C to break free.
Not sure why MySQL hates me in my guts, but I think it's somewhere around this line in /server/db/create_db.js:70.
Maybe we move the
pool.end()
call from line 80 into thecreateDatabase()
callback function after line 101. If I move that line locally, I still get the errors, but the script ends with this and frees my Terminal up:The text was updated successfully, but these errors were encountered: