码迷,mamicode.com
首页 > 数据库 > 详细

windows下重启mysql

时间:2014-05-09 08:21:38      阅读:448      评论:0      收藏:0      [点我收藏+]

标签:blog   class   code   tar   c   com   

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
其中第二种方法对我这无效,以后再搞清楚!
 
一、MYSQL服务
 
我的电脑——(右键)管理——服务与应用程序——服务——MYSQL——开启(停止、重启动)
 
  
 
二、命令行方式
 
 Windows
 
  1.点击“开始”->“运行”(快捷键Win+R)。
 
  2.启动:输入 net stop mysql
 
  3.停止:输入 net start mysql
 
  提示* Redhat Linux 也支持service command,启动:# service mysqld start 停止:# service mysqld stop 重启:# service mysqld restart
 
  * Windows下不能直接重启(restart),只能先停止,再启动。
 
  
 
三、Too many connections
 
2008-04-30┆379,578 Views┆56,071
错误编号:1040
 
问题分析:
 
连接数超过了 MySQL 设置的值,与 max_connections 和 wait_timeout  都有关系。wait_timeout 的值越大,连接的空闲等待就越长,这样就会造成当前连接数越大。
 
解决方法:
 
1、虚拟主机用户请联系空间商优化 MySQL 服务器的配置;
 
2、独立主机用户请联系服务器管理员优化 MySQL 服务器的配置,可参考:
 
修改 MySQL 配置文件(Windows下为 my.ini, Linux下为 my.cnf )中的参数:
 
    CODE: [COPY]
    max_connections= 1000
    wait_timeout = 5
 
如果没有可以自行添加,修改后重启 MySQL ,如果经常性的报此错误,请您按照服务器环境搭建教程检查下你的服务器

 

windows下重启mysql,布布扣,bubuko.com

windows下重启mysql

标签:blog   class   code   tar   c   com   

原文地址:http://www.cnblogs.com/flying-tx/p/3717712.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!