我使用Wamp创建我的测试网站,今天我遇到了一个我以前没有面对过的问题 当我开始wamp - >图标变绿了,一切都很好。 一旦我浏览我的本地网站http://localhost/mywebsite,Wamp Icon就会变为橙色并且mysql服务自动停止,页面显示此错误,“超过30秒的最大执行时间”,我从php.ini更改了此时间设置为600,但仍然是相同的问题,页面需要很长时间加载,然后没有加载
我使用wordpress,当我打开wordpress控制面板时发生同样的问题, 我发现这是因为我的数据库中有大量数据,我删除了所有记录,仍然存在同样的问题,任何想法?
注意:我没有无限循环。
以下是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)
答案 0 :(得分:0)
How to show the last queries executed on MySQL?
打开查询日志,然后查看它是否为挂起查询。您也可以在服务器仍在运行时从phpmyadmin执行此操作。