環境是win7 mysql5.6版本
測試下配置文件是否可用(之前沒用過windows下的msyql配置)
修改配置前查詢下:mysql> show variables like '%max_connections%'; +-----------------+-------+ | Variable_name | Value | +-----------------+-------+ | max_connections | 100 | +-----------------+-------+ 1 row in set
mysql> show variables like '%max_connections%'; +-----------------+-------+ | Variable_name | Value | +-----------------+-------+ | max_connections | 100 | +-----------------+-------+ 1 row in set
</pre><pre name="code" class="python">mysql> show variables like '%datadir%'; +---------------+-----------------------------+ | Variable_name | Value | +---------------+-----------------------------+ | datadir | D:\devsofts\mysqldata\data\ | +---------------+-----------------------------+ 1 row in set