Add details about configuring 4-byte Unicode Support in MySQL #2926
Add details about configuring 4-byte Unicode Support in MySQL #2926
Conversation
This fixes #2924.
@settermjd, thanks for your PR! By analyzing the history of the files in this pull request, we identified @RandolfCarter, @butonic and @wshadow to be potential reviewers. |
@DeepDiver1975 please review the doc |
Question: Reading this, I expect that NEW tables will be created as written. When you have a running ownCloud instance, how to enable it there ? |
@mmattel in answer to your question, I took that sentence from the following snippet from config/config.php:
|
For supporting such features as emoji, you have to both enable 4-byte Unicode support in MySQL (instead of the default 3) as well as in ownCloud. | ||
To do so: | ||
|
||
1. In ``config/config.sample.php`` set ``mysql.utf8mb4`` to true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not necessary - during setup we are detecting if mb4 is possible .... I'm sorry for not providing the correct information.
Let me double check config.sample.php - maybe this needs some adoptions as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @DeepDiver1975. Hear from you when you're ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid confusion I would explicitly state this is for new installations only.
Q: is there a migration path available?
Q: what about DB backup and restore - any issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@settermjd pls see also: owncloud/core#27409 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmattel, I'm just now coming back to this and as I'm reading through the discussion here, the code, and owncloud/core#27409 (comment) the point about it being for new installations, not upgrades seems incorrect. Can you clarify?
@settermjd changes have been made to config.sample.php to describe the behaviour briefly. |
Any update ? @guruz |
No refrence to config.sample.php? |
Should have that in in tonight's session. |
Here |
@@ -83,7 +83,7 @@ If you decide to use a MySQL or MariaDB database, ensure the following: | |||
* That you have installed and enabled the ``pdo_mysql`` extension in PHP | |||
* That the **mysql.default_socket** points to the correct socket (if the database runs on the same server as ownCloud). | |||
|
|||
.. note:: MariaDB is backwards compatible with MySQL. All instructions work for both. You will not need to replace MySQL with anything. | |||
.. note:: MariaDB is backwards compatible with MySQL. All instructions work for both, so you will not need to replace or revise any, existing, MySQL client commands. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
👍 |
@guruz - my little girl's been singing that with her Grandma for a few weeks now. Great timing. |
References
#2924