随笔分类 -  Mysql

上一页 1 ··· 4 5 6 7 8 9 下一页
Mysql:日志管理:二进制事务日志
摘要:mysql的二进制事务日志和其他的dbms的事务日志是类似的东西,是数据库备份、恢复、还原,高级的复制、镜像等功能的核心构件。mysql的二进制事务日志是一系列有base_name.数字序列组成的。日志系列在日志大小超过max_binlog_size时自动产生——注意实际的二进制日志文件的大小可能超过该设置的大小,因为一个事务日志记录不能跨越文件。mysql的二进制事务日志... 阅读全文
posted @ 2009-06-21 11:41 jinzhenshui 阅读(1319) 评论(0) 推荐(0)
Mysql:日志管理:错误日志
摘要:mysql的错误日志记录了mysqd服务器的基本进程的运行状态信息。命令、配置选项:[--]log_error[=filen_ame]  --调用flush logs时,生成新的错误日志文件,旧的文件名添加“-old”后缀命令、配置选项:[--]log_warnings --控制mysql将警告信息也记录到错误日志文件里动态系统变量:log_warnings --控制mys... 阅读全文
posted @ 2009-06-20 23:10 jinzhenshui 阅读(514) 评论(0) 推荐(0)
Mysql:日志管理:一般查询日志、慢速查询日志的
摘要:一般查询日志、慢速查询日志既可以写入os的文件系统里,也可以作为mysql系统的日志表形式!日志表带来了很多便利,当然也会给mysql带来一定的系统负荷!需要权衡。同时日志表和普通的mysql的表相比,有自己的某些特点:必须是cvs或myisam引擎;alter、drop table时,日志表必须禁用;truncate table可以正常使用;insert、update、delete、lock t... 阅读全文
posted @ 2009-06-20 22:48 jinzhenshui 阅读(583) 评论(0) 推荐(0)
Mysql:日志管理:综述
摘要:mysql支持多种系统日志,提供全面的系统错误、事件、业务逻辑的记录、追踪、诊断、查询等等功能!Log TypeInformation Written to LogThe error logProblems encountered starting, running, or stopping mysqldThe general query logEstablished client connect... 阅读全文
posted @ 2009-06-20 22:22 jinzhenshui 阅读(208) 评论(0) 推荐(0)
Mysql:函数之三: date and time functions:重要的格式化函数
摘要:DATE_FORMAT(date,format_str) Formats the date value according to the format string. The following specifiers may be used in the format string. The “%” character is required before format s... 阅读全文
posted @ 2009-06-18 16:15 jinzhenshui 阅读(354) 评论(0) 推荐(0)
Mysql:函数之三: date and time functions
摘要:11.6.Date and Time Functions11.6.Date and Time FunctionsThis section describes the functions that can be used to manipulate temporal values. See Section10.3, “Date and Time Types”, for a d... 阅读全文
posted @ 2009-06-18 15:35 jinzhenshui 阅读(714) 评论(0) 推荐(0)
Mysql:函数之二: miscellaneous functions
摘要:Miscellaneous FunctionsNameDescriptionDEFAULT()Return the default value for a table columnGET_LOCK()Get a named lockINET_ATON()Return the numeric value of an IP addressINET_NTOA()Return the IP address... 阅读全文
posted @ 2009-06-18 13:59 jinzhenshui 阅读(234) 评论(0) 推荐(0)
Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:状态变量
摘要:Server Status VariablesThe server maintains many status variables that provide information about its operation. You can view these variables and their values by using the SHOW [GLOBAL | SESSION] STATUS statement (see Section12.5.5.37, “SHOW STATUS Syntax”). The optional GLOBAL keyword aggregates the 阅读全文
posted @ 2009-06-18 09:11 jinzhenshui 阅读(568) 评论(0) 推荐(0)
Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:(动态)系统变量
摘要:Dynamic System VariablesMany server system variables are dynamic and can be set at runtime using SET GLOBAL or SET SESSION. You can also obtain their values using SELECT. See Section5.1.5, “Usin... 阅读全文
posted @ 2009-06-18 09:09 jinzhenshui 阅读(345) 评论(0) 推荐(0)
Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:(仅会话)系统变量
摘要:Session System VariablesSeveral system variables exist only as session variables. These cannot be set at server startup but can be assigned values at runtime using the SET statement (except for those ... 阅读全文
posted @ 2009-06-18 09:01 jinzhenshui 阅读(422) 评论(0) 推荐(0)
Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:系统变量
摘要:Server System VariablesThe MySQL server maintains many system variables that indicate how it is configured. Each system variable has a default value. System variables can be set at server startup usin... 阅读全文
posted @ 2009-06-18 09:00 jinzhenshui 阅读(797) 评论(0) 推荐(0)
Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:命令选项
摘要:Server Command OptionsWhen you start the mysqld server, you can specify program options using any of the methods described in Section4.2.3, “Specifying Program Options”. The most common me... 阅读全文
posted @ 2009-06-18 08:58 jinzhenshui 阅读(554) 评论(0) 推荐(0)
Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:总揽
摘要:Server Option and Variable ReferenceThe following table provides a list of all the command line options, server and status variables applicable within mysqld. The table lists command-line options (Cmd... 阅读全文
posted @ 2009-06-18 06:23 jinzhenshui 阅读(358) 评论(0) 推荐(0)
Mysql:函数之一:information functions
摘要:NameDescriptionBENCHMARK(cont,expr)Repeatedly execute an expression主要是测试计算密集型的标量表达式——类似于压力测试。如果是查询,必须单行单列CHARSET(str)(v4.1.0)Return the character set of the argumentCOERCIBILITY(str)(v4.1.... 阅读全文
posted @ 2009-06-16 09:50 jinzhenshui 阅读(303) 评论(0) 推荐(0)
Mysql:简单“破解”SQLyog Enterprise 812 Trial
摘要:SQLyog 是一个功能强大,界面简洁大方的Mysql GUI客户端。曾记得:Sqlyog早期的版本没有通用版和企业版之分的。截止到这篇博客日期2009-06-15,sqlyog8.12已经释出。其通用版是免费的版本——已经是同类软件的佼佼者了,但其打开、关闭软件提示画面,软件界面里灰色的不可用企业功能这是让人心里痒痒!网上也有不少的破解版,先不管其是否真的完美破解,这使用... 阅读全文
posted @ 2009-06-15 22:09 jinzhenshui 阅读(2457) 评论(0) 推荐(0)
Mysql:语法:注释
摘要:注释#  --行尾--_  --行尾。注意必须在“--”后跟空白或控制字符/* */  --c风格/*! mysql特殊指令 *//*3213 mysql特殊指令 */ 阅读全文
posted @ 2009-06-15 17:15 jinzhenshui 阅读(374) 评论(0) 推荐(0)
Mysql:语法:虚拟表DUAL
摘要:在mysql里也存在和oracle里类似的dual虚拟表:官方声明纯粹是为了满足select ... from...这一习惯问题,mysql会忽略对该表的引用。你可千万注意了:select * from dual;     mysql会出错——1096:没有使用到表;而oracle 会返回列:“du”,其值为“X”&mdash... 阅读全文
posted @ 2009-06-15 11:41 jinzhenshui 阅读(5347) 评论(0) 推荐(0)
Mysql:临时表、表变量
摘要:在mysql中没有表变量这一概念!mysql有临时表:create temporary table if not exists {表定义}  --关键字”temporary“指示mysql创建会话级别的临时表。临时表只对当前会话可见,连接断开时,自动删除!你不必担心所创建的临时表的名称会和其他会话建立的临时表、或非临时表冲突!注意如果你的临时表和正常表名称相同,正常表会被隐... 阅读全文
posted @ 2009-06-14 17:24 jinzhenshui 阅读(5842) 评论(0) 推荐(1)
Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:如何使用系统变量?
摘要:概述mysql有大量的系统变量,从变量的适用范围分为全局系统变量和会话系统变量。全局系统变量仅仅影响新的连接会话,为其提供会话系统变量的默认值;而后者仅在当前的连接里存在并有效;每个全局系统变量都有其 编译默认值,又称全局默认值;全局系统变量编译默认值可以通过命令选项、选项文件配置选项予以改变,其值 称之为 全局系统变量的全局当前值;某些全局系统变量的全局当前值可以通过set global改变,这... 阅读全文
posted @ 2009-06-13 13:42 jinzhenshui 阅读(1136) 评论(0) 推荐(0)
Mysql:命令选项、配置选项、(全局、会话)系统变量、状态变量:SQL模式
摘要:sql_mode  为什么会有各种各样的sqlmode呢?不外乎标准与非标准的问题!标准的东西贵在普适,但不是最合适的!各种各样的dbms总会加入自己的理解,扩展自己的产品功能,这就会引起非标准的问题。所以一个成熟的dbms总会提供sql_mode这一解决方案形式,使dbms系统具有某种行为模式以便实现 和 标准、其他dbms系统的兼容!mysql的sql_modemysql可以同时运行在各种sq... 阅读全文
posted @ 2009-06-13 10:00 jinzhenshui 阅读(1166) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 下一页