Changes between Version 13 and Version 14 of MySqlDb
- Timestamp:
- Mar 30, 2007, 3:02:26 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MySqlDb
v13 v14 9 9 === MySQL === 10 10 11 In order to avoid several issues with unicode and international characters throughout Trac, we '''''strongly''''' advise MySQL users to only use databases having the ''`utf8`'' character set and the ''`utf8_general_ci`'' collation type. However, some of Trac indexes in utf8 are incompatible with MySQL 4.1.x, so anything before MySQL 5.0.x will justnot work in this configuration.11 In order to avoid several issues with unicode and international characters throughout Trac, we '''''strongly''''' advise MySQL users to only use databases having the ''`utf8`'' character set and the ''`utf8_general_ci`'' collation type. However, prior to [milestone:0.10.4] some of Trac indexes in ''utf8'' are incompatible with MySQL 4.1.x (too big), so anything before MySQL 5.0.x just will not work in this configuration. 12 12 13 13 Such databases can be created with the MySQL monitor, like that: 14 14 {{{ 15 15 CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 16 }}} 17 18 To check what are the settings for your database, issue command: 19 {{{ 20 mysql> USE TRAC; 21 Database changed 22 mysql> SHOW VARIABLES LIKE '%character%'; 23 +--------------------------+-------------------- 24 | Variable_name | Value 25 +--------------------------+-------------------- 26 | character_set_client | cp1251 27 | character_set_connection | cp1251 28 | character_set_database | utf8 29 | character_set_filesystem | binary 30 | character_set_results | cp1251 31 | character_set_server | utf8 32 | character_set_system | utf8 33 | character_sets_dir | C:\DevServer\Instal 34 +--------------------------+-------------------- 35 8 rows in set (0.00 sec) 36 mysql> 16 37 }}} 17 38