2017-08-15 5 views
0

J'ai un problème avecComment faire pour augmenter la valeur de max_connections pour MySQL sur Windows Server?

SQLSTATE[08004] [1040] Too many connections 

sur un ordinateur Windows Server 2008 R2. Maintenant, j'essaye d'augmenter le max_connections (la valeur par défaut est 151). Dans le dossier racine MySQL 5.6D:\...\MySQL5.6 J'ai trouvé un fichier my-default.ini et ajouté

max_connections = 200

sous [mysqld]. Ensuite, je remis en marche le service:

Service-Manager-MySQL

Mais rien n'a changé:

SHOW VARIABLES LIKE "max_connections"; 
+-----------------+-------+ 
¦ Variable_name ¦ Value ¦ 
+-----------------+-------+ 
¦ max_connections ¦ 151 ¦ 
+-----------------+-------+ 

Je rebaptisés le my-default.ini-my.ini et remis en marche à nouveau le serveur MySQL. Aucun effet.

Comment configurer MySQL max_connections de façon permanente sur Windows Server?

Répondre

0

Mon mauvais - j'ai édité le mauvais my.ini.

Dans ce video est montré, comment savoir, lequel est utilisé par le service MySQL sous Windows:

  1. [Start]->Run...-> "services.msc"
  2. right click sur l'entrée de la service MySQL ->Properties
  3. [tab] General:

MySQL-service-properties

J'ai mis à jour le bon my.ini et redémarré le service. Maintenant, la nouvelle valeur est utilisée.