- 论坛徽章:
- 0
|
Normal
0
7.8 磅
0
2
false
false
false
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
table.MsoTableGrid
{mso-style-name:网格型;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
border:solid windowtext 1.0pt;
mso-border-alt:solid windowtext .5pt;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-border-insideh:.5pt solid windowtext;
mso-border-insidev:.5pt solid windowtext;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
MySql 091221
@ http://zcatt.cublog.cn
1.
MySQL选项配置
MySQL选项的配置有几种方式:
1)
使用命令行参数的方式
在命令参数中直接指定选项,举例,指定username, host
mysql -h hostname -u root
2)使用配置文件, my.ini(win os), my.cnf(linux os)
配置文件中设定的参数同命令行参数一样,除了下面几个区别,
a. '#', ';'开头的是注释行。
行尾'#'后的也是注释内容
b. 形如[group]的括号标记将配置文件分割多个区域(sections)。一般每个区域仅作用于对应程序名的程序。例如,[mysqld]用于mysqld 启动的server, [mysql]用于mysql客户端程序。特别的,[client]做用于所有客户端程序。
当多个配置参数冲突时,后面的取代前面的。
3) 使用环境变量
对于bash环境,可以配置.bashrc 或 .bash_profile。也可以使用export 命令。
export MYSQL_TCP_PORT=3306
2.
MySQL开发中用的着的几个工具
1)
mysql_config, 可以得到使用MySQL时的诸如编译选项,头文件等信息。常用的option有
--cflags
C的编译参数
--include
MySQL的头文件
--libs, --libs_r
MySQL client library
--port
the default port
--version
version
2) my_print_defaults, 输出当前的有效配置, 关于配置,参见前。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8866/showart_2127214.html |
|