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

readme: update mysql commands to create a database with real UTF-8 and give hint on user creation #228

Merged
merged 1 commit into from Jul 23, 2018

Conversation

Trim
Copy link
Member

@Trim Trim commented Jul 23, 2018

Hello,

I'm creating again a development environment.

I've just seen that mysql commands currently advices to create the database with utf8 instead of utf8mb4 which is the real UTF-8 (for more details see this blog post which explain the first character set use a custom utf-8 on 3 bytes and the other uses the standard utf-8 on 4 bytes).

I took the opportunity too to add an example on how to create a user in mysql directly with SQL commands.

Thanks

…tf8mb4) by default and give a hint on user creation
@nono nono merged commit 761a0d7 into linuxfrorg:master Jul 23, 2018
@nono
Copy link
Member

nono commented Jul 23, 2018

Thanks!

@Trim
Copy link
Member Author

Trim commented Jul 23, 2018

Mmmhh, sorry, that was a bad idea, with that setup I can't create the index

CREATE INDEX `index_oauth_access_grants_on_token` USING btree ON `oauth_access_grants` (`token`)

because I have this error while running db:setup:

Mysql2:Error: Specified key was too long: max key length is 767 bytes

That's strange, as I've seen in the database.yml file the character set is setted by default on utf8mb4.

I'll try tomorrow to create a Debian Jessie environment instead of Debian Stretch, because Stretch is using MariaDB.

@Trim Trim deleted the readme-update-mysql-commands branch February 9, 2019 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants