Edgewall Software

Changes between Version 13 and Version 14 of MySqlDb


Ignore:
Timestamp:
Mar 30, 2007, 3:02:26 PM (17 years ago)
Author:
techtonik <techtonik@…>
Comment:

+ some more information to help debugging MySQL issues

Legend:

Unmodified
Added
Removed
Modified
  • MySqlDb

    v13 v14  
    99=== MySQL ===
    1010
    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 just not work in this configuration.
     11In 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.
    1212
    1313Such databases can be created with the MySQL monitor, like that:
    1414{{{
    1515CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
     16}}}
     17
     18To check what are the settings for your database, issue command:
     19{{{
     20mysql> USE TRAC;
     21Database changed
     22mysql> 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+--------------------------+--------------------
     358 rows in set (0.00 sec)
     36mysql>
    1637}}}
    1738