June 19, 2013

Post: Converting Character Sets

…-> ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Query OK, 0 rows affected (0.02 sec) mysql> ALTER TABLE `t1` CONVERT TO CHARACTER SET utf8 COLLATE …#1: ALTER TABLE `t1` DEFAULT CHARSET=utf8, MODIFY COLUMN `c1` text CHARACTER SET utf8; This approach will both change the default character set for the table …

Post: Ultimate MySQL variable and status reference list

character_set_clientblogpercona.commanual character_set_client_handshakeblogpercona.commanual character_set_connectionblogpercona.commanual character_set_databaseblogpercona.commanual character_set_filesystemblogpercona.commanual character_set_resultsblogpercona.commanual character_set

Post: InnoDB Full-text Search in MySQL 5.6: Part 2, The Queries!

… must use the latin1 character set. mysql: CREATE TABLE innodb_ft_list2 ( value VARCHAR(18) NOT NULL DEFAULT ”) ENGINE=InnoDB DEFAULT CHARSET=latin1; Query OK… be; do our InnoDB results change? No, they are exactly the same, although the scores did change slightly. What about a Boolean…

Post: MySQL Upgrade Webinar Questions Followup

… Upgrading to MySQL 5.5 do we really need all tables changed to Innodb and character set set to utf8? No. MySQL 5…default. Regarding setting character set to utf8 – this is not needed as MySQL 5.5 continues to support various character sets same as previous MySQL versions. Moreover utf8 character set

Post: MySQL 5.5 and MySQL 5.6 default variable values differences

…_10/data/mysq | | CHARACTER_SETS_DIR | /mnt/nfs/dist/mysql-5.5.30-linux2.6-x86_ | /mnt/nfs/dist/mysql-5.6.10-linux… default. Very welcome change ! thread_cache_size is enabled by default, though I wonder why default value is 9. In any case very welcome change…=on 1 row in set (0.00 sec) Summary: MySQL 5.6 comes with quite a few changes to default configurations which are mostly…

Post: MySQL Installation and upgrade scripts.

MySQL 4.1 and later more caution is required because you could screw your data, for example by specifying utf8 as default character set together not to mention infamous timestamp format change which forced to change a lot of applications. MySQL 5.0 added…

Post: MySQL Backup tools used by Percona Remote DBA for MySQL

…loop through each DB write out ALTER DATABASE DEFAULT CHARACTER SET to the schema file, putting in …, long term backups Decompressing Percona XtraBackup for MySQL  in parallel using all your resources available … by file, for files that don’t change they can be easily hardlinked to typically…

Post: Shard-Query EC2 images available

SET character_set_client = @saved_cs_client */; CREATE TABLE `dim_flight` ( `UniqueCarrier` char(7) DEFAULT NULL, `AirlineID` int(11) DEFAULT NULL, `Carrier` char(2) DEFAULTDEFAULT CHARSET=latin1 COMMENT=’Contains all avaialble data from 1988 to 2010′; mysql> use ontime1; Database changed mysql

Comment: Why MySQL could be slow with large tables ?

mysql/mysql.sock user=mysql init_connect=’SET collation_connection = utf8_general_ci; SET NAMES utf8;’ default-character-set=utf8 character-set-server=utf8 collation-server=utf8_general_ci [client] default-character-set

Post: MySQL Indexing Best Practices: Webinar Questions Followup

…bigint column containing the crc64, and change the indexing to be on that… because the first 10 or so characters usually are the same). Of …is string comparison in MySQL is case insensitive by default while hash comparison …frequently. The size of this “working set” can greatly depend on application …