Edgewall Software

Changes between Version 60 and Version 61 of MySqlDb


Ignore:
Timestamp:
Feb 10, 2012, 12:17:56 AM (12 years ago)
Author:
Christian Boos
Comment:

document #9766 (utf8mb4)

Legend:

Unmodified
Added
Removed
Modified
  • MySqlDb

    v60 v61  
    1818The recommended versions of MySQL are those from 5.0.x series.
    1919It might work with 4.1.x or 6.0.x, but no guarantees.
    20 The [http://askmonty.org/wiki/index.php/MariaDB MariaDB] variant of MySQL works as well (tested MariaDB 5.3.3, MySQLdb 1.2.3 and Trac 0.12.3rc1).
     20The [http://askmonty.org/wiki/index.php/MariaDB MariaDB] variant of MySQL works as well (tested MariaDB 5.3.3, MySQLdb 1.2.3 and Trac 0.12.3).
    2121
    2222In order to avoid Unicode and international characters problems in Trac (e.g., international characters turning into question marks with mysterious **"Incorrect string value"** errors logged), the Trac database MUST be configured  with the ''`utf8`'' character set and the ''`utf8_bin`'' collation type.
     
    2727{{{
    2828CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
     29}}}
     30
     31With MySQL version 5.5.3 and up, you can also select the [http://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html mb4] variant of utf8, which enables you to store any Unicode character, not only those in the [WikiPedia:Basic_Multilingual_Plane Basic Multilingual Plane]. Note that you'll need at least Trac 0.12.3 for this (#9766).
     32{{{
     33CREATE DATABASE trac DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
    2934}}}
    3035
     
    7883
    7984=== MySQLdb ===
    80 The recommended version is MySQL-python 1.2.2 or 1.2.3, which must be compiled in ''thread-safe client'' mode.
    81 Earlier versions are known to be problematic.
     85The recommended version is MySQL-python 1.2.3, which must be compiled in ''thread-safe client'' mode. The older version 1.2.2 also works but please don't use earlier versions which are known to be problematic.
    8286
    8387See http://cheeseshop.python.org/pypi/MySQL-python/1.2.2, which contains links to the .tar.gz source distribution as well as pre-built Windows eggs, but for Python 2.5 only as of this writing. Python 2.6 binaries for windows can be found [http://www.codegood.com/archives/4 here] (unofficial site).
     
    152156There are a few possibilities:
    153157 1. Try first to login on the command-line using the user `tracuser` (`mysql -p -h localhost -u tracuser`)
    154  1. Created user is not yet used by MySQL (Login to the MySQL server (as root) with`mysql -p` and type: `FLUSH PRIVILEGES;`)
     158 1. Created user is not yet used by MySQL (Login to the MySQL server (as root) with `mysql -p` and type: `FLUSH PRIVILEGES;`)
    155159 1. The user is added but the host does not match in the MySQL user table (occurred on a FreeBSD setup). Correct this with: `mysql -p; use mysql; UPDATE user SET Host="localhost" WHERE User="tracuser"; FLUSH PRIVILEGES;`