Wampserver图标未完全变绿,mysql服务未启动?
我在Wampserver图标未完全变绿,mysql服务未启动?,mysql,apache,wampserver,Mysql,Apache,Wampserver,我在localhost上运行一个应用程序,它已经成功运行了至少一年了,但突然今天wampserver没有启动。每当我右键单击任务栏图标并“启动所有服务”时,它会变成橙色,但不会变成绿色。昨天出现了一个数据丢失问题,因为其中一个mysql表崩溃,必须修复,如果这与此有关的话 如果我尝试http://localhost/phpmyadmin,我得到了一个403禁止的错误,这是我以前从未得到过的 我今天查看了apache日志,其最新条目如下: [Sat Jul 20 14:17:31 2013] [e
localhost
上运行一个应用程序,它已经成功运行了至少一年了,但突然今天wampserver没有启动。每当我右键单击任务栏图标并“启动所有服务”时,它会变成橙色,但不会变成绿色。昨天出现了一个数据丢失问题,因为其中一个mysql表崩溃,必须修复,如果这与此有关的话
如果我尝试http://localhost/phpmyadmin
,我得到了一个403禁止的
错误,这是我以前从未得到过的
我今天查看了apache日志,其最新条目如下:
[Sat Jul 20 14:17:31 2013] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:31 2013] [error] [client 127.0.0.1] PHP 1. {main}() D:\\wamp\\www\\zeejflow\\index_exe.php:0, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:31 2013] [error] [client 127.0.0.1] PHP 2. mysql_real_escape_string() D:\\wamp\\www\\zeejflow\\index_exe.php:25, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:31 2013] [error] [client 127.0.0.1] PHP Warning: mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: A link to the server could not be established in D:\\wamp\\www\\zeejflow\\index_exe.php on line 25, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:31 2013] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:31 2013] [error] [client 127.0.0.1] PHP 1. {main}() D:\\wamp\\www\\zeejflow\\index_exe.php:0, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:31 2013] [error] [client 127.0.0.1] PHP 2. mysql_real_escape_string() D:\\wamp\\www\\zeejflow\\index_exe.php:25, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP Warning: mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: [2002] No connection could be made because the target machine actively (trying to connect via tcp://localhost:3306) in D:\\wamp\\www\\zeejflow\\index_exe.php on line 26, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP 1. {main}() D:\\wamp\\www\\zeejflow\\index_exe.php:0, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP 2. mysql_real_escape_string() D:\\wamp\\www\\zeejflow\\index_exe.php:26, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP Warning: mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: No connection could be made because the target machine actively refused it.\r\n in D:\\wamp\\www\\zeejflow\\index_exe.php on line 26, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP 1. {main}() D:\\wamp\\www\\zeejflow\\index_exe.php:0, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP 2. mysql_real_escape_string() D:\\wamp\\www\\zeejflow\\index_exe.php:26, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP Warning: mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: A link to the server could not be established in D:\\wamp\\www\\zeejflow\\index_exe.php on line 26, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP 1. {main}() D:\\wamp\\www\\zeejflow\\index_exe.php:0, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:32 2013] [error] [client 127.0.0.1] PHP 2. mysql_real_escape_string() D:\\wamp\\www\\zeejflow\\index_exe.php:26, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:33 2013] [error] [client 127.0.0.1] PHP Warning: mysql_num_rows() expects parameter 1 to be resource, integer given in D:\\wamp\\www\\zeejflow\\index_exe.php on line 34, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:33 2013] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:33 2013] [error] [client 127.0.0.1] PHP 1. {main}() D:\\wamp\\www\\zeejflow\\index_exe.php:0, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:33 2013] [error] [client 127.0.0.1] PHP 2. mysql_num_rows() D:\\wamp\\www\\zeejflow\\index_exe.php:34, referer: http://localhost/zeejflow/index.php
[Sat Jul 20 14:17:33 2013] [error] an unknown filter was not added: DEFLATE
[Sat Jul 20 14:17:33 2013] [error] an unknown filter was not added: DEFLATE
[Sat Jul 20 14:17:33 2013] [error] an unknown filter was not added: DEFLATE
由于[2002]无法建立连接,因为目标计算机处于活动状态(试图通过tcp://localhost:3306
error,我想使用相同端口的其他应用程序可能有问题,所以我尝试了以下方法(我的wamp在D:上运行):
但现在我不知道该怎么做了。我确定my.ini指定了端口3306,它已经指定了(无论如何,一年内没有人更改过它,它怎么会突然有另一个值).任何帮助!我想Apache正在工作,因为当我键入http://localhost
,它可以工作,并且可以选择转到phpmyadmin或我的应用程序文件夹,但似乎mysql服务没有启动或什么的?我与管理员确认,没有安装新软件(如Skype)或任何东西
更新
我转到Services.msc
并检查wampapache
,状态为“已启动”。
但是wampmysqld
没有状态,所以我右键单击并选择了“开始”。
一条消息说“Windows正在尝试在本地计算机上启动服务”,但随后我出现了以下错误:
Windows could not start the wampmysqld service on Local Computer
Error 1067: The process terminated unexpectedly
到底怎么了(
更新2
我让mysql再次工作,这里:
但是,
localhost://phpmyadmin
仍然给我一个403禁止的
错误,mysql\u connect
一直给我一个“拒绝访问”错误错误。今天我遇到了这种情况。因为我从昨天起就没有更改过系统设置,所以我认为这主要是系统上的mysql问题。我通过以下方式修复了它
注意:安装一个新的mysql实例并不一定意味着您的数据库将被保留。如果您正在处理大型项目,我建议您每晚对数据库进行备份。删除此文件中的所有内容
C:\wamp\bin\mysql\mysql5.1.36\data\mysql-bin.index
重新启动mysql服务器,它应该可以工作
我也有同样的问题 WampServer从2月份开始在我的本地开发服务器上运行良好。今天我无法让它运行 转到谷歌,在那里我找到了这个页面,直到看到最后一个条目才找到答案: “1.运行WampServer:Apache->service->testport 80 2.查找占用端口80的应用程序(例如skype)” 结果是Skype可能阻塞了80端口
关闭Skype,问题得到解决。我从命令提示符打开services.msc并禁用了SQL Server reporting services &SQL Server analysis services。这些服务使用的是端口80
然后我重新启动了WAMP服务器,它开始像以前一样正常工作。我已完全卸载了WAMP服务器,并删除了/WAMP文件夹中除www以外的所有文件。卸载时会保留此文件夹。之后,我再次安装了它,它工作正常
重要提示:这只有在您已经备份了数据库的情况下才有用。数据库中的所有数据都将以这种方式删除。我也遇到了同样的问题。Mysql没有启动
为我工作。我运行Wamp服务器已经一年多了,
现在我遇到了一个无法启动Wamp服务器的问题(图标保持红色,错误消息出现) 我设法卸载了Wamp并重新安装了它,我也是这样做的,但在此之前,我将文件夹从mysql/data复制到了我的桌面,然后在重新安装时,我将该文件复制到了原始位置 然后mysql被搞糊涂了…phpmyadmin不工作,所以我通过恢复新的安装文件夹内容修复了这个问题。
但我无法启动mysql(wamp服务器图标仍为黄色) 所以在我搜索了很多之后,我删除了mysql/数据中的所有内容,除了:-
mysql
test
performance_schema
我的问题解决了:)对我来说,在my.ini中添加innodb_force_recovery=3解决了这个问题
另一个选项是从数据目录中删除ibdata文件和所有ib_日志文件,如中所述。但是,这将导致任何innoDB表不可用
C:\wamp\bin\mysql\mysql5.1.36\data\mysql-bin.index
mysql
test
performance_schema
innodb_force_recovery = 1
program can't start because msvcr120.dll is missing OR
program can't start because msvcr120.dll is missing