Edgewall Software

Changes between Version 1 and Version 2 of Ticket #8089, comment 19


Ignore:
Timestamp:
Sep 29, 2013, 11:58:56 AM (11 years ago)
Author:
Peter Suter

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8089, comment 19

    v1 v2  
    1818+-------+------+-----------------+...
    1919}}}
    20 (Edit: This is a flawed test and can be ignored. [http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_character_set_database Documentation] states: ''You should not set the value of this variable manually.'' But ''checking'' the variable could still be useful.
    21 
    22 As described on MySqlDb#Collationfromwhatevertoutf8_bin I should have used `ALTER DATABASE` instead.)
     20(Edit: The above was flawed and can be ignored. [http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_character_set_database Documentation] states: ''You should not set the value of this variable manually.'' As described on MySqlDb#Collationfromwhatevertoutf8_bin use `ALTER DATABASE` (and `ALTER TABLE`) instead:
     21{{{
     22mysql> CREATE DATABASE trac;
     23mysql> USE trac;
     24mysql> SHOW VARIABLES LIKE 'collation_database';
     25| collation_database | utf8_general_ci |
     26mysql> ALTER DATABASE `trac` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
     27mysql> SHOW VARIABLES LIKE 'collation_database';
     28| collation_database | utf8_bin |
     29mysql> CREATE TABLE test (a TEXT);
     30mysql> SHOW FULL COLUMNS FROM test;
     31+-------+------+-----------+....
     32| Field | Type | Collation |....
     33+-------+------+-----------+....
     34| a     | text | utf8_bin  |....
     35+-------+------+-----------+....
     36}}}
     37So ''checking'' the variables could still be useful.)