Changes between Version 49 and Version 50 of MySqlDb
- Timestamp:
- Feb 5, 2010, 2:06:15 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MySqlDb
v49 v50 109 109 110 110 ==== Collation from "whatever" to "utf8_bin" ==== 111 First modify DB collation :111 First modify DB collation to ensure new tables will be created properly: 112 112 {{{ 113 113 ALTER DATABASE `trac_database` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; 114 114 }}} 115 115 116 Then modify tables - issue the followingfor every table:116 Then modify collation for tables. The command below changes default collation for new columns and converts old columns as well. Issue it for every table: 117 117 {{{ 118 ALTER TABLE `table_name` DEFAULTCHARACTER SET utf8 COLLATE utf8_bin;118 ALTER TABLE `table_name` CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin; 119 119 }}} 120 120