国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

MySQL 的 Daemon 啟動參數

2024-07-24 12:56:13
字體:
來源:轉載
供稿:網友
假設你的啟動腳本是/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 @[email protected]) 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.

建議加入精華:)
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 大兴区| 尉氏县| 清水河县| 乳源| 策勒县| 商水县| 胶南市| 巴马| 竹北市| 东阿县| 长岛县| 增城市| 潢川县| 利辛县| 普兰店市| 仙游县| 沂源县| 新和县| 东辽县| 白河县| 渑池县| 绥中县| 平乐县| 卢湾区| 从江县| 顺义区| 贵南县| 交口县| 杨浦区| 泽库县| 来凤县| 扶绥县| 固原市| 无棣县| 玛曲县| 东阳市| 信阳市| 吴川市| 阿坝县| 永靖县| 墨江|