Restart MySQL under Windows

Source: Internet
Author: User

?
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 connections2008-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 ,如果经常性的报此错误,请您按照服务器环境搭建教程检查下你的服务器

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.