|
| |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
假设你的启动脚本是/etc/init.d/mysql 那么找到$bindir/safe_mysqld这行,加上如下参数 -O max_connections=1000 -O wait_timeout=500 -O interactive_timeout=500 当然,得根据你的实际情况加以修改,不过默认值对于我们公司这样负载的服务器是不可想象的…… 现在,你的MySQL启动文件有可能看起来像这样: ............ $bindir/safe_mysqld --user=mysql --datadir=$datadir --pid-file=$pid_file -O max_connections=1000 -O wait_timeout=500 -O interactive_timeout=500& ............ 修改完成之后,重启MySQL即可,注重一定要先使用mysqladmin shutdown 服务器。 推荐在my.cnf中配置这些参数。 假如你有MySQL的源代码版本,你可以在support-files目录下找到my-huge.cnf, my-large.cnf 分别打开看看,选择适合你的那个文件 抄一段话: # You can copy this file to # /etc/my.cnf to set global options, # mysql-data-dir/my.cnf to set server-specific options (in this # installation this directory is @localstatedir@) or # ~/.my.cnf to set user-specific options. # # One can in this file use all long options that the program supports. # If you want to know which options a program support, run the program # with --help option. 返回类别: 教程 上一教程: MYSQL数据导入与导出之二 下一教程: 用联接来查询两个表 您可以阅读与"MYSQL的DAEMON启动参数"相关的教程: · MYSQL性能优化全攻略-服务器参数调整 · MYSQL优化全攻略-服务器参数调整 · MYSQL服务器的启动和关闭 · MYSQL服务器的启动与停止 · MYSQL学习笔记04-MYSQL的启动和连接 |
| 快精灵印艺坊 版权所有 |
首页 |
||