随笔分类 -  MySql

摘要:前言http://blog.chinaunix.net/uid-20639775-id-3337432.htmlLvs+Keepalived+Mysql单点写入主主同步高可用方案http://blog.chinaunix.net/uid-20639775-id-3337448.htmlLvs+Keepalived+Mysql单点写入读负载均衡主主同步高可用方案http://blog.chinaunix.net/uid-20639775-id-3337471.htmlHeartbeat高可用Mysql主主同步方案http://blog.chinaunix.net/uid-20639775-id- 阅读全文
posted @ 2013-03-19 17:35 李占卫 阅读(279) 评论(0) 推荐(0) 编辑
摘要:PS:本配置文件针对Dell R710,双至强E5620、16G内存的硬件配置。CentOS 5.6 64位系统,MySQL 5.5.x 稳定版。适用于日IP 50-100w,PV 100-300w的站点,主要使用InnoDB存储引擎。其他应用环境请根据实际情况来设置优化。# 以下选项会被MySQL客户端应用读取。# 注意只有MySQL附带的客户端应用程序保证可以读取这段内容。# 如果你想你自己的MySQL应用程序获取这些值。# 需要在MySQL客户端库初始化的时候指定这些选项。# [client] #password = [your_password]port = @MYSQL_TCP_PO 阅读全文
posted @ 2012-12-13 10:37 李占卫 阅读(663) 评论(0) 推荐(0) 编辑
摘要:归档Redis在Windows,linux平台下的安装配置使用ServiceStackRedis链接Redis简介Redis资料汇总专题 阅读全文
posted @ 2012-04-16 14:26 李占卫 阅读(329) 评论(0) 推荐(0) 编辑
摘要:1:存储过程返回值View Code public void InputOutputParameters() { AdoHelper ado = AdoHelper.CreateHelper(DbProvideType.MySql); ado.ExecuteNonQuery(conn, CommandType.Text, "CREATE PROCEDURE spTest1( INOUT strVal VARCHAR(50), INOUT numVal INT, OUT outVal INT UNSIGNED ) " + ... 阅读全文
posted @ 2012-04-05 16:31 李占卫 阅读(594) 评论(0) 推荐(0) 编辑
摘要:1:整形View Code AdoHelper ado = AdoHelper.CreateHelper(DbProvideType.MySql); ado.ExecuteNonQuery(conn, CommandType.Text, "CREATE TABLE Test (id TINYINT, idu TINYINT UNSIGNED, i INT UNSIGNED)"); IDataParameter[] param1 = new IDataParameter[]{ ado.GetPara... 阅读全文
posted @ 2012-04-01 16:08 李占卫 阅读(312) 评论(0) 推荐(0) 编辑
摘要:1:Message: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.Solution:SETSQL_SAFE_UPDATES= 0;2:远程登录GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '110110' WITH GRANT OPTION; 阅读全文
posted @ 2012-04-01 11:15 李占卫 阅读(159) 评论(0) 推荐(0) 编辑
摘要:文档地址:http://dev.mysql.com/doc/refman/5.6/en/connector-net-connection-options.htmlGeneral OptionsNameDefaultDescriptionAllow Batch,AllowBatchtrueWhen true, multiple SQL statements can be sent with one command execution. Note: starting with MySQL 4.1.1, batch statements should be separated by the serv 阅读全文
posted @ 2012-03-30 16:46 李占卫 阅读(2323) 评论(0) 推荐(0) 编辑
摘要:MySQL性能优化的21条最佳经验 阅读全文
posted @ 2012-03-26 17:16 李占卫 阅读(210) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示