冰&红&茶

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  MySQL

摘要:Binlog was disabled at last week, this improve the I/O efficiency.Besides, I've done a minor changes for myisam buffer, changed from 64M to 128M at last week.query_cache_size=64Mquery_cache_limit=2Mjoin_buffer_size=4Mtmp_table_size=128Mmax_heap_table_size=128Mkey_buffer_size=90MORquery_cache_siz 阅读全文
posted @ 2014-01-21 18:21 一路前行,莫回头 阅读(201) 评论(0) 推荐(0)

摘要:1 SELECT * 2 FROM `users` 3 WHERE `name` LIKE CONVERT( _utf8 '%\\_1@%')注意,使用的是LIKE%string%,如果条件中包含特殊字符,请加转义符\ 阅读全文
posted @ 2012-02-22 10:00 一路前行,莫回头 阅读(6977) 评论(0) 推荐(0)

摘要:http://tech.it168.com/db/m/2007-04-18/200704182228406_1.shtml 阅读全文
posted @ 2012-02-09 14:14 一路前行,莫回头 阅读(139) 评论(0) 推荐(0)

摘要:1 SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM {access} WHERE type = '%s' AND LOWER('%s') LIKE LOWER(mask) ORDER BY status DESC 阅读全文
posted @ 2011-12-02 14:10 一路前行,莫回头 阅读(241) 评论(0) 推荐(0)

摘要:MySQL同主机不同数据库的复制命令:注意运行在Terminal中,不运行在MySQL命令行中。1 mysqldump Portal_DEV -u root -ppassword1$ --add-drop-table | mysql Portal_Optimize -u root -ppassword1$在复制过程中,出现如下报错:1 ERROR 1153 (08S01) at line 1160: Got a packet bigger than 'max_allowed_packet' bytes2 mysqldump: Got errno 32 on write需要将my 阅读全文
posted @ 2011-10-25 16:44 一路前行,莫回头 阅读(7139) 评论(0) 推荐(0)

摘要:援引至以下链接。1 blog.51yip.com/mysql/1042.html#more-1042 阅读全文
posted @ 2011-10-24 15:42 一路前行,莫回头 阅读(184) 评论(0) 推荐(0)

摘要:援引至以下链接。1 http://www.gosoa.com.cn/mysql-%E9%94%81%E8%A1%A8%E6%9C%BA%E5%88%B6%E5%88%86%E6%9E%90/解决的方案: MySQL读写分离。 阅读全文
posted @ 2011-10-24 15:35 一路前行,莫回头 阅读(167) 评论(0) 推荐(0)

摘要:1 update content_type_center set field_center_url_value = replace(field_center_url_value,'_https://portal.xxx.com','_http://www.yyy.com'); 阅读全文
posted @ 2011-10-20 14:34 一路前行,莫回头 阅读(245) 评论(0) 推荐(0)