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

Not supporting MySQL 5.5.2 and older #73

Closed
zhangbenber opened this issue Oct 19, 2017 · 4 comments
Closed

Not supporting MySQL 5.5.2 and older #73

zhangbenber opened this issue Oct 19, 2017 · 4 comments

Comments

@zhangbenber
Copy link

zhangbenber commented Oct 19, 2017

This library does not support MySQL 5.5.2 and older since it creates tables using utf8mb4, which is not supported by older versions of MySQL.

I created the table by myself using utf8_bin, and it seems working for me. However, this conflicts with Issue #49, will you add MySQL version detecting before creating the table, or at least, add a Compatibility section in README, and provide a collation option for some workarounds?

@chill117
Copy link
Owner

chill117 commented Oct 19, 2017

Looks like the utf8mb4 collation was added in MySQL 5.5.3 in early 2010. That's a long way back. Can you not upgrade your MySQL version?

@zhangbenber
Copy link
Author

@chill117, I agree with you and I am considering updating my MySQL. But I didn't see any warnings or tips about what happened, and it confused me.

I suggest a tip in README may help it better. Thank you all the same.

@chill117
Copy link
Owner

chill117 commented Oct 19, 2017

@zhangbenber Yes, it would be nice to somehow save the next person some time either with a note in the readme about the collation or better yet a check (and warning) in the module itself if the old version (or a lack of proper collation support) is detected. It should be possible to look-up the collations which the database supports.

@chill117
Copy link
Owner

Added a note to the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants