aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-09-20 21:46:43 +0900
committerGitHub <noreply@github.com>2018-09-20 21:46:43 +0900
commit0a829f7db10263c5bf5f8b4ee04ea92a05ecdd39 (patch)
tree0166d1b37a90da2e4653f20a7479b73d503f9516
parent3cac5fe94f0f81b4263cfa03d4822c05a55eb49c (diff)
parentabba0208376f41f5dd71ad64696870c9c52f9fd0 (diff)
downloadrails-0a829f7db10263c5bf5f8b4ee04ea92a05ecdd39.tar.gz
rails-0a829f7db10263c5bf5f8b4ee04ea92a05ecdd39.tar.bz2
rails-0a829f7db10263c5bf5f8b4ee04ea92a05ecdd39.zip
Merge pull request #33929 from yahonda/update_utf8mb4_railsguide
Update MySQL server version and character set in Rails Guide [skip ci]
-rw-r--r--guides/source/configuring.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index e372b3a816..18a377a02e 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -1014,7 +1014,6 @@ If you choose to use MySQL or MariaDB instead of the shipped SQLite3 database, y
```yaml
development:
adapter: mysql2
- encoding: utf8
database: blog_development
pool: 5
username: root
@@ -1024,6 +1023,8 @@ development:
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.
+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.
+
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`:
```yaml