標籤:
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修改最大串連數