Skip to content

Commit 0a829f7

Browse files
authored
Merge pull request rails#33929 from yahonda/update_utf8mb4_railsguide
Update MySQL server version and character set in Rails Guide [skip ci]
2 parents 3cac5fe + abba020 commit 0a829f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/source/configuring.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,6 @@ If you choose to use MySQL or MariaDB instead of the shipped SQLite3 database, y
10141014
```yaml
10151015
development:
10161016
adapter: mysql2
1017-
encoding: utf8
10181017
database: blog_development
10191018
pool: 5
10201019
username: root
@@ -1024,6 +1023,8 @@ development:
10241023
10251024
If your development database has a root user with an empty password, this configuration should work for you. Otherwise, change the username and password in the `development` section as appropriate.
10261025

1026+
NOTE: If your MySQL version is 5.5 or 5.6 and want to use the `utf8mb4` character set by default, please configure your MySQL server to support the longer key prefix by enabling `innodb_large_prefix` system variable.
1027+
10271028
Advisory Locks are enabled by default on MySQL and are used to make database migrations concurrent safe. You can disable advisory locks by setting `advisory_locks` to `false`:
10281029

10291030
```yaml

0 commit comments

Comments
 (0)