# codetengu-bot/test

- **Source:** Software Heritage origin index (GitHub origins)
- **Licence:** Per source; see source terms
- **Citation:** https://git.go-v.org/record/codetengu-bot%2Ftest
- **Canonical:** https://git.go-v.org/record/codetengu-bot%2Ftest
- **JSON:** https://git.go-v.org/api/v1/record/codetengu-bot%2Ftest

For example, a TINYTEXT column can hold up to 255 bytes, which correlates to 85 three-byte or 63 four-byte characters. Let’s say you have a TINYTEXT column that uses utf8 but must be able to contain more than 63 characters. Given this requirement, you can’t convert this column to utf8mb4 unless you also change the data type to a longer type such as TEXT — because if you’d try to fill it with four-byte characters, you’d only be able to enter 63 characters, but not more.  The same goes for index keys. The InnoDB storage engine has a maximum index length of 767 bytes, so for utf8 or utf8mb4 columns, you can index a maximum of 255 or 191 characters, respectively. If you currently have utf8 columns with indexes longer than 191 characters, you will need to index a smaller number of characters when using utf8mb4. (Because of this, I had to change some indexed VARCHAR(255) columns to VARCHAR(191).)  Section 10.1.11 of the MySQL 5.5 Reference Manual has some more information on this.  Step 5: Modify connection, client, and server character sets  In your application code, set the connection character set to utf8mb4. This can be done by simply replacing any variants of SET NAMES utf8 with SET NAMES utf8mb4. If your old SET NAMES statement specified the collation, make sure to change that as well, e.g. SET NAMES utf8 COLLATE utf8_unicode_ci becomes SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci.  Make sure to set the client and server character set as well. I have the following in my MySQL configuration file (/etc/my.cnf):  [client] default-character-set = utf8mb4  [mysql] default-character-set = utf8mb4  [mysqld] character-set-client-handshake = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci

Read-only public data; missing values are published as no-data and never estimated. Operated by Anticloud FZ LLE — Lois-Kleinner Alpasan.