- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我在 localhost
上运行一个应用程序,它已经成功运行至少一年了,但是今天 wampserver 突然没有启动。每当我右键单击任务栏图标并“启动所有服务”时,它会变为橙色,但不会变为绿色。昨天有一个数据丢失问题,因为其中一个 mysql 表崩溃并且必须修复,如果这与此有任何关系的话。
如果我尝试 http://localhost/phpmyadmin
,我会收到 403 Forbidden
错误,这是我以前从未遇到过的。
我今天查看了 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
index_exe.php 的第 25 行和第 26 行如下(我试图登录应用程序):
$userName = mysql_real_escape_string($_POST['userName']);
$Password = mysql_real_escape_string($_POST['Password']);
由于 [2002] No connection could be made because the target machine active (trying to connect via tcp://localhost:3306
错误,我想可能是其他应用程序有问题使用相同的端口,所以我尝试了以下操作(我的 wamp 在 D 上运行:):
C:\Users\admin>netstat
Active Connections
Proto Local Address Foreign Address State
TCP 127.0.0.1:5939 localhost127:49313 ESTABLISHED
TCP 127.0.0.1:5939 localhost127:49317 ESTABLISHED
TCP 127.0.0.1:49155 localhost127:49156 ESTABLISHED
TCP 127.0.0.1:49156 localhost127:49155 ESTABLISHED
TCP 127.0.0.1:49157 localhost127:49158 ESTABLISHED
TCP 127.0.0.1:49158 localhost127:49157 ESTABLISHED
TCP 127.0.0.1:49311 localhost127:49312 ESTABLISHED
TCP 127.0.0.1:49312 localhost127:49311 ESTABLISHED
TCP 127.0.0.1:49313 localhost127:5939 ESTABLISHED
TCP 127.0.0.1:49315 localhost127:49316 ESTABLISHED
TCP 127.0.0.1:49316 localhost127:49315 ESTABLISHED
TCP 127.0.0.1:49317 localhost127:5939 ESTABLISHED
TCP 127.0.0.1:49320 localhost127:49321 ESTABLISHED
TCP 127.0.0.1:49321 localhost127:49320 ESTABLISHED
TCP 192.168.15.200:49166 server6201:5938 ESTABLISHED
TCP 192.168.15.200:49847 Server-PC:netbios-ssn TIME_WAIT
TCP 192.168.15.200:49848 Server-PC:netbios-ssn TIME_WAIT
D:\>netstat
Active Connections
Proto Local Address Foreign Address State
TCP 127.0.0.1:80 localhost127:49799 TIME_WAIT
TCP 127.0.0.1:80 localhost127:49800 TIME_WAIT
TCP 127.0.0.1:80 localhost127:49801 TIME_WAIT
TCP 127.0.0.1:80 localhost127:49802 TIME_WAIT
TCP 127.0.0.1:80 localhost127:49803 TIME_WAIT
TCP 127.0.0.1:80 localhost127:49804 TIME_WAIT
TCP 127.0.0.1:80 localhost127:49806 TIME_WAIT
TCP 127.0.0.1:80 localhost127:49810 TIME_WAIT
TCP 127.0.0.1:80 localhost127:49811 TIME_WAIT
TCP 127.0.0.1:5939 localhost127:49313 ESTABLISHED
TCP 127.0.0.1:5939 localhost127:49317 ESTABLISHED
TCP 127.0.0.1:49155 localhost127:49156 ESTABLISHED
TCP 127.0.0.1:49156 localhost127:49155 ESTABLISHED
TCP 127.0.0.1:49157 localhost127:49158 ESTABLISHED
TCP 127.0.0.1:49158 localhost127:49157 ESTABLISHED
TCP 127.0.0.1:49311 localhost127:49312 ESTABLISHED
TCP 127.0.0.1:49312 localhost127:49311 ESTABLISHED
TCP 127.0.0.1:49313 localhost127:5939 ESTABLISHED
TCP 127.0.0.1:49315 localhost127:49316 ESTABLISHED
TCP 127.0.0.1:49316 localhost127:49315 ESTABLISHED
TCP 127.0.0.1:49317 localhost127:5939 ESTABLISHED
TCP 127.0.0.1:49320 localhost127:49321 ESTABLISHED
TCP 127.0.0.1:49321 localhost127:49320 ESTABLISHED
TCP 192.168.15.200:49166 server6201:5938 ESTABLISHED
TCP 192.168.15.200:49805 mrs02s05-in-f4:http ESTABLISHED
但现在我不知道该怎么做。我确保 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
到底怎么了? :(
我的 mysql 又开始工作了,在这里:
mysqld working but wampmysqld not starting up
然而,localhost://phpmyadmin
仍然给我一个 403 禁止
错误,并且 mysql_connect
一直给我一个“拒绝访问”错误.
最佳答案
转到:wamp\bin\mysql\mysql5.6.17\data
并删除以下内容:
auto.cnf
、xxxxxxxxx.err
、xxxxxxxxx.pid
、ib_logfile0
和 ib_logfile1
保持其他文件不变。
如果是 skype 占用了你的 80 端口,那么去 skype: tools>option and in advance>connection uncheck "use port 80 and 443 ......"
关于mysql - Wampserver 图标没有完全变绿,mysql 服务没有启动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17761931/
我最近安装了 wampserver 2.0 并将其配置为在端口 81 上工作。现在的问题是,当我单击 wampserver 2.0 内任务栏上的 phpMyAdmin 时,浏览器会将我重定向到 loc
我所有的网站都位于 D:/Documents/websites目录。我已经设法指向 http://localhost/到基于此的文件夹 video tutorial . 但我也想要的是,每当我从 wa
我已经通过互联网上的许多提示和技巧来解决 Wampserver Aestan Tray Menu 错误,但没有找到任何解决方案。 我从控制面板取消选中 IIS。安装了最新版本的 Microsoft .
我已经安装了 WampServer。它现在在线。当我在浏览器中输入 localhost 时,它会给我一个空白页面。我怎样才能摆脱它? 在安装 WampServer 之前,我需要手动安装 PHP 吗?
最近在Windows机器上使用WAMP服务器搭建服务器环境。一切正常,但我有一个小问题:每个人都可以访问 wampserver 主页,因此他们可以看到托管在同一服务器、服务器文件系统等中的其他网页。
wamp服务器的图标为黄色,我尝试过: 1.通过Wamp托盘图标打开文件httpd.conf 找: # onlineoffline tag - don't remove Order Deny,Allo
我刚刚在我的电脑上安装了 Wamp Server 2。而且我无法访问phpmyadmin,甚至无法访问根目录下的index.php,这一切都给出了403 Forbidden。 我也尝试过从 alias
我已将密码放在主 phpmyadmin 中,而不是数据库之一中。如果连密码都没有机会输入,我怎么能访问它。 最佳答案 看看重置 MySQL root 密码 here 。 UPDATE mysql.us
这个问题已经有答案了: Re installing Wamp Server without replacing the existing mysql database (2 个回答) 已关闭 5 年前
当我尝试从另一台设备(与 LAN 连接)访问我的本地网站时,出现禁止错误。 我试图编辑 Apache 的 httpd.conf(正如谷歌告诉我的那样),修复 vcredist 包,完全卸载 wamp
WampServer 可以在生产中成功使用吗?这是一个坏主意吗? 所以每个人都知道,我不明白这有什么关系,我们已经支付了一个 Windows 专用框,我们有现有的 IIS 应用程序。我们只是想使用基于
我已经安装了wamp服务器2.2 我正在使用Windows 7 当我当时在线时,我无法使用WaMp找到本地主机 它给了我一些禁止的错误..您没有访问类型的错误。 但是,当我断开Internet连接时,
首先,我必须说我完全是初学者。我安装了 Wamp server 2 verison(我有 XP)但图标是橙色的。我在某个地方发现这个问题可能出在 Apache 中,因为某些东西使用了端口 80(可能是
这个问题已经有答案了: Not able to launch WAMP - Aestan Tray Menu has stopped working (11 个回答) 已关闭 9 年前。 我在Wind
我再次遇到 wamp 服务器问题。首先,图标不会变绿,所以我将端口更改为 8080,现在它变绿了。但是,当我访问 localhost 时,我只是在下面的屏幕截图中收到消息。 有人知道这是怎么回事吗?当
我刚刚安装了 WampServer 2.5,脚本运行良好。只有 Wamp 图标不起作用。例如,如果我浏览一个文件夹项目,当Wamp列出文件时,不会出现该图标,如下所示: 尝试右键单击图标,在打开的新选
WampServer安装在我的电脑上。 我希望安装RMySQL 包。 online documentation后者提到: Install a MySQL client library from htt
因此,我设置了一些具有唯一 url 的虚拟主机,它们在桌面上运行良好。但是,当我在网络上连接移动设备时,除了默认的 localhost 虚拟主机外,它似乎无法正确访问任何东西,而且只有当它是我拥有的唯
我有一个 mySQL 数据库问题 - 我是新手:我已经安装了 WAMP 服务器,并且可以登录 localhost,然后登录 phpmyadmin 以显示下面的屏幕(右图)。但我得到了红色的“No xN
因此,我设置了一些具有唯一网址的虚拟主机,它们在桌面上运行得很好。但是,当我在网络上连接移动设备时,除了默认的本地主机虚拟主机之外,它似乎无法正确访问任何内容,而且只有当它是我唯一的虚拟主机时才会出现
我是一名优秀的程序员,十分优秀!