1、從官網下載安裝MySQL Installer。MySQL Installer 提供了簡單易用、向導式的 MySQL 軟件的安裝體驗過程(目前只支持 Windows),包含的產品有:
點擊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,保存並退出,重啟系統
