欧美特黄不卡,涩涩视频在线,成人国产精品一区二区网站,亚洲一区二区三区欧美

當(dāng)前位置:雨林木風(fēng)下載站 > 技術(shù)開發(fā)教程 > 詳細(xì)頁面

MySQL 的 Daemon 打開參數(shù)

MySQL 的 Daemon 打開參數(shù)

更新時間:2022-04-29 文章作者:未知 信息來源:網(wǎng)絡(luò) 閱讀次數(shù):

假設(shè)你的啟動腳本是/etc/init.d/mysql

那么找到$bindir/safe_mysqld這行,加上如下參數(shù)

-O max_connections=1000 -O wait_timeout=500 -O interactive_timeout=500

當(dāng)然,得根據(jù)你的實(shí)際情況加以修改,不過默認(rèn)值對于我們公司這樣負(fù)載的服務(wù)器是不可想象的……

現(xiàn)在,你的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 服務(wù)器。

推薦在my.cnf中配置這些參數(shù)。

如果你有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.

建議加入精華:)

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統(tǒng)下載排行

主站蜘蛛池模板: 广安市| 肇源县| 额济纳旗| 台山市| 仁布县| 富民县| 额济纳旗| 镇江市| 庄浪县| 云浮市| 枣庄市| 西和县| 天柱县| 双峰县| 舟山市| 泸定县| 苍梧县| 武乡县| 陇南市| 衡水市| 徐闻县| 石嘴山市| 孟州市| 于田县| 南陵县| 应城市| 晋宁县| 洛川县| 曲松县| 宜兴市| 图们市| 正定县| 宽城| 资中县| 吴旗县| 永嘉县| 札达县| 泌阳县| 延庆县| 济宁市| 台山市|