WAMP MySQL error 2002

倖福魔咒の 提交于 2019-12-11 02:15:22

问题


About a year ago I started working with databases. To this end I installed WAMP on my relatively old Windows 7 computer. That went very smooth, and since that time I am an enthousiastic user of WAMP, doing quite a lot of php programming.

Now I have a brand new Windows 8 tablet. After having installed Firefox and Thunderbird I tried to install WAMP, the latest version downloaded from Sourceforge (Apache 2.2.22, PHP 5.4.3, MySQL 5.5.24). Since Windows 8 is not really an obscure operating system, I did not expect any problems. However, I was heavily disappointed.

The first thing I had to do was inserting the line Allow from ::1 in the files alias/phpmyadmin.conf and httpd.conf. Then localhost worked, but phpmyadmin not. It gives the error MySQL #2002 - No connection could me made because the target machine actively refused it. There is some information on this error on internet, but they do not deal with the password definition, which seems to be my problem.

The mysql.log shows (first lines omitted, they look OK)

130401 13:21:35  InnoDB: Operating system error number 87 in a file operation.  
InnoDB: Some operating system error numbers are described at  
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/operating-system-error-codes.html  
InnoDB: File name .\ib_logfile0  
InnoDB: File operation call: 'aio read'.  
InnoDB: Cannot continue operation.

This suggests that I have a MySQL login-error. That is suggested as well by the following behaviour: when I open the MySQL console, it asks for a password. There is no password (in the file my.ini the password line is commented out), so I press enter and the console closes immediately. Also, when I specify a password in my.ini and use that password, the console closes immediately.

Maybe this is a simple problem, but I have no idea how to tackle it. Any advice is highly appreciated.

来源:https://stackoverflow.com/questions/15748055/wamp-mysql-error-2002

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!