⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1817.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=76 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=100 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=98 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=79 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=103 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=26 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR>
        <TR>
          <TD colSpan=3><A title=linux知识宝库 
            href="index.html" tppabs="http://www.linuxhero.com/docs/index.html"><IMG height=83 
            src="images/header_r1_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c1.gif" width=472 border=0 
            name=header_r1_c1></A></TD>
            <TD colSpan=3>
              <form action="http://www.linuxhero.com/docs/search.html" method=get>
                <table 
                        style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid" 
                        cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
                  <tbody> 
                  <tr> 
                    <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"> 
                      <div align=center><font class=normalfont>搜索文章: 
                        <input type=hidden value=result name=action2>
                          <input type=radio checked value=title name=type>标题 
                          <input type=radio value=content name=type>内容 
                          <input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
                        </font></div>
                    </td>
                  </tr>
                  <tr> 
                    <td noWrap> 
                      <div align="center"> 
                        <input maxlength=100 size=30 name=keyword2>
                      </div>
                    </td>
                  </tr></tbody> 
                </table>
              </form>
            </TD>
            <TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
          <TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
        <TR>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22 
            src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0 
            name=header_r2_c1></TD>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
              <DIV align=right><FONT class=normalfont>当前位置: 
              <A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
              <font color="#FF6699">&gt;&gt;</font>
<A href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</A>                 | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
            </TD>
          <TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff 
        border=0>
         <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
              
              <TR>
                <TD vAlign=top align=middle width="60%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                  background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
                    <TBODY>
                    <TR>
                        <TD vAlign=top width="80%"> 
                          <DIV align=center>
                        <FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
                            </FORM>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>MySQL优化简明指南</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:Linux知识宝库<br>联系方式:无名<br><br>一、在编译时优化MySQL <br>
    如果你从源代码分发安装MySQL,要注意, 编译过程对以后的目标程序性能有重要的影<br>
响,不同的编译方式可能得到类似的目标文件,但性能可能相差很大,因此,在编译安装<br>
MySQL适应仔细根据你的应用类型选择最可能好的编译选项。这种定制的MySQL可以为你的应<br>
用提供最佳性能。<br>
    技巧:选用较好的编译器和较好的编译器选项,这样应用可提高性能10-30%。<br>
(MySQL文档如是说)<br>
<br>
1.1、使用pgcc(Pentium GCC)编译器 <br>
    该编译器(http://www.goof.com/pcg/)针对运行在奔腾处理器系统上的程序进行优化,<br>
用pgcc编译MySQL源代码,总体性能可提高10%。当然如果你的服务器不是用奔腾处理器,就<br>
不必用它了,因为它是专为奔腾系统设计的。<br>
<br>
1.2、仅使用你想使用的字符集编译MySQL <br>
    MySQL目前提供多达24种不同的字符集, 为全球用户以他们自己的语言插入或查看表中<br>
的数据。却省情况下,MySQL安装所有者这些字符集,热然而, 最好的选择是指选择一种你<br>
需要的。如,禁止除Latin1字符集以外的所有其它字符集:<br>
--------------------------------------------------------------------------------<br>
%&gt;./configure -with-extra-charsets=none [--other-configuration-options] <br>
--------------------------------------------------------------------------------<br>
<br>
1.3、将mysqld编译成静态执行文件 <br>
    将mysqld编译成静态执行文件而无需共享库也能获得更好的性能。通过在配置时指定下<br>
列选项,可静态编译mysqld。<br>
--------------------------------------------------------------------------------<br>
%&gt;./configure -with-mysqld-ldflags=-all-static [--other-configuration-options] <br>
--------------------------------------------------------------------------------<br>
<br>
1.4、配置样本 <br>
    下列配置命令常用于提高性能:<br>
--------------------------------------------------------------------------------<br>
%&gt;CFLAGS="-O6 -mpentiumpro -fomit-frame-pointer" CXX=gcc <br>
    CXXFLAGS="-O6 -mpentiumpro -fomit-frame-pointer -felide-constructors <br>
              -fno-exceptions -fno-rtti" <br>
    ./configure --prefix=/usr/local --enable-assembler <br>
    --with-mysqld-ldflags=-all-static --disable-shared <br>
--------------------------------------------------------------------------------<br>
<br>
二、调整服务器 <br>
    确保运用正确的编译固然重要,但这只是成功的第一步, 配置众多的MySQL变量同样对<br>
服务器的正常运行起关键作用。你可以将这些变量的赋值存在一个配置文件中,以确保它们<br>
在每次启动MySQL时均起作用,这个配置文件就是my.cnf文件。<br>
    MySQL已经提供了几个my.cnf文件的样本, 可在/usr/local/mysqld/share/mysql/目录<br>
下找到。这些文件分别命名为my-small.cnf、 my-medium.cnf、my-large.cnf和<br>
my-huge.cnf,规模说明可在描述配置文件适用的系统类型标题中找到。 如果在只有相当少<br>
内存的系统上运行MySQL,而且只是偶尔的用一下,那么my-small.cnf会比较理想, 因为它<br>
命令mysqld只使用最少的资源。类似地,如果你计划构建电子商务超市,而且系统拥有2G内<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -