简体   繁体   English

浏览后,Mysql服务停止运行

[英]Wamp , Mysql service stopped after browsing my local website

I use Wamp to create my test websites , today i face a problem that i not face before when i start wamp -> icon become green , everything is fine . 我使用Wamp创建我的测试网站,今天我遇到一个问题,当我启动Wamp->图标变为绿色之前,一切都还好。 Once i browse my local website , http://localhost/mywebsite , Wamp Icon changed to orange and mysql service stopped automatically , and the page display this error , "Maximum execution time of 30 seconds exceeded " , i changed this time from php.ini and set it to 600 , but still the same problem , page take long time to load and then didn't loaded yet 浏览本地网站http:// localhost / mywebsite后 ,Wamp图标更改为橙色,并且mysql服务自动停止,并且页面显示此错误“超过30秒的最大执行时间”,这次我从php更改了。 ini并将其设置为600,但仍然是同样的问题,页面需要很长时间才能加载,然后尚未加载

i use wordpress and also when i open wordpress control panel same problem happened , i though that happened because of huge data in my DB , i remove all records , and still the same problem , any idea ? 我使用wordpress,并且当我打开wordpress控制面板时,发生了相同的问题,尽管那是由于数据库中的大量数据导致的,但我删除了所有记录,并且仍然是同一问题,有什么想法吗?

NOTE:i have no infinity loop . 注意:我没有无限循环。

below is last records from MySQL log file 以下是MySQL日志文件中的最后一条记录

InnoDB: Doing recovery: scanned up to log sequence number 403698529
2015-01-17 23:44:52 4768 [Note] InnoDB: Starting an apply batch of log records to the database... 
InnoDB: Progress in percent: 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 47 48 49 50 51 52 53 54 
                     55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 
                     73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 
                     91 92 93 94 95 96 97 98 99  
InnoDB: Apply batch completed 
InnoDB: Last MySQL binlog file position 0 45110, file name mysql-bin.000040 
2015-01-17 23:44:52 4768 [Note] InnoDB: 128 rollback segment(s) are active. 
2015-01-17 23:44:52 4768 [Note] InnoDB: Waiting for purge to start 2015-01-17
23:44:53 4768 [Note] InnoDB: 5.6.12 started; log sequence number
 403698529 2015-01-17 23:44:53 4768 [Note] Recovering after a crash using mysql-bin 
2015-01-17 23:44:53 4768 [Note] Starting crash recovery... 
2015-01-17 23:44:53 4768 [Note] Crash recovery finished.
wampmysqld: File '.\mysql-bin.000001' not found (Errcode: 2 - No such file or directory) 
2015-01-17 23:44:53 4768 [ERROR] Failed to open log (file '.\mysql-bin.000001', errno 2) 
2015-01-17 23:44:53 4768 [ERROR] Could not open log file 
2015-01-17 23:44:53 4768 [Note] Server hostname (bind-address): '*'; port: 3306 
2015-01-17 23:44:53 4768 [Note] IPv6 is available. 
2015-01-17 23:44:53 4768 [Note]   - '::' resolves to '::'; 
2015-01-17 23:44:53 4768 [Note] Server socket created on IP: '::'.   
2015-01-17 23:44:54 4768 [Note] Event Scheduler: Loaded 0 events 
2015-01-17 23:44:54 4768 [Note] wampmysqld: ready for connections. 
Version: '5.6.12-log'  socket: ''  port: 3306  MySQL Community Server (GPL)

How to show the last queries executed on MySQL? 如何显示在MySQL上执行的最后一个查询?

Turn on your query log, then look to see if it is a hung query. 打开查询日志,然后查看它是否是挂起的查询。 You can also do this from phpmyadmin while the server is still running. 您还可以在服务器仍在运行时从phpmyadmin执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM