MySQL For Windows修改最大串連數

來源:互聯網
上載者:User

標籤:

1、從官網下載安裝MySQL Installer。MySQL Installer 提供了簡單易用、嚮導式的 MySQL 軟體的安裝體驗過程(目前只支援 Windows),包含的產品有:

MySQL Server,所有的 connectors,Workbench 和樣本模型,樣本資料庫,文檔。:http://dev.mysql.com/downloads/windows/installer/

點擊mysql-installer-community-5.6.26.0.msi下的Download按鈕,在跳轉頁面中點擊No thanks, just start my download.即可

2、開始 -> 所有程式 -> MySQL -> MySQL Server 5.6 -> MySQL 5.6 Command Line Client

Enter password:(輸入root賬戶密碼,斷行符號)

mysql> show variables like ‘%max_connections%‘;
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 151  |
+-----------------+-------+
1 row in set (0.00 sec)

 

預設的串連數太小,在實際應用的過程中需要修改其最大串連數,從源碼mysqld.cc檔案中得知mysql支援的最大串連數是16384,參考文章:http://www.jb51.net/article/51829.htm

修改方法一:

mysql> set GLOBAL max_connections = 10000;

Query OK, 0 rows affected (0.00 sec)

修改方法二:

開啟C:\ProgramData\MySQL\MySQL Server 5.6下的my.ini,修改[mysqld]下的max_connections = 10000,儲存並退出,重啟系統

MySQL For Windows修改最大串連數

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.