Wampserver icon not going green fully, mysql services not starting up?

Deadly 提交于 2019-11-28 10:02:44

This happened to me today. Since I had not changed my system setting since yesterday, I assumed it's predominantly a mysql issue on the system. I managed to fix it in the following way.

  1. Open wampserver's mysql log file. This will contain information on why the service threw and error and exited prematurely.

  2. In my case, the mysql service failed to start because it could not read a certain tablespace. The specific tablespace was indicated in the log.

  3. Failure to read such a file could be because of file permissions or the file being broken. In such a case, mysql stops executing in order to avoid damaging a tablespace file that may be linked to a database you need. Usually, if you have a backup of the database, then it is safe to simply delete this problematic file and restore the database once your mysql service is started again.

  4. If you do not have a database backup then you could force the mysql instance to run a recovery by enabling the option in your my.cnf / my.ini file.

innodb_force_recovery = 1

This forces the instance to run the crash recovery.

NOTE: installing a new instance of mysql does not necessarily mean that your databases shall be retained. I suggest you run a nightly backup of your databases if you are working on huge projects.

Go to: wamp\bin\mysql\mysql5.6.17\data and delete the following:

auto.cnf, xxxxxxxxx.err, xxxxxxxxx.pid, ib_logfile0 and ib_logfile1

leave other file as it is.

if it is skype that is occupying your port 80 then go to skype: tools>option and in advance>connection uncheck "use port 80 and 443......"

I had the same issue, to resolve it I added the following line to my.ini

innodb_force_recovery = 1

I was running Wamp Server for more than a year,
Now I faced a problem that I couldn't start Wamp server (The icon just stay red and the error message appear)

I managed to uninstall Wamp and reinstall it again, and so I did, but before that I copied the folder from mysql/data to my desktop then when I reinstall it I copied that files to the original location.

Then mysql just got confused... And phpmyadmin is not working so I fixed that by restoring the fresh install folder contents..
But I couldn't start mysql (the wamp servers icon still on yellow)

So after I googled a lot, I deleted every thing in the mysql/data except for:-

mysql
test
performance_schema

And my problem solved :)

I had this same problem...

WampServer has been running fine since Feb on my local dev server. Today I couldn't get it to run.

Off to google where I found this page and found no answers until I saw the last entry:

"1.Run WampServer: Apache->service->test port 80.

2.Find out application which occupation port 80(e.g. skype)"

So did and it returned that Skype was possibly blocking port 80.

Turned off Skype and the problem was solved.

I had the same problem. Mysql didn't start.

  1. go to services.
  2. right click the wampmysqld go to properties.
  3. startup type select manual.
  4. right click and click start service.

worked for me.

For me, adding innodb_force_recovery=3 to my.ini solved the issue

Another option is removing ibdata files and all ib_logfile from the data directory , as explained in MySQL docs here. However this will cause any innoDB tables not to work(because the some information stored in ibdata1)

Pradip Sabhadiya

You may want to reset data from MySQL

  • delete previous data from C:\wamp\bin\mysql\mysql5.6.17\data
  • restart service

I had a similar problem, so I searched on google. This article will surely help you out: resolving-yellow-wamp-server-status-freeing-up-port-80-for-apache

Thanks

ella.s

Delete everything from this file.

C:\wamp\bin\mysql\mysql5.1.36\data\mysql-bin.index

Restart mysql server and it should work.

1.Run WampServer: Apache->service->test port 80.

2.Find out application which occupation port 80(e.g. skype)

3.quit it then restart wampserver.

I opened up services.msc from the command prompt and disabled SQL Server reporting services

& SQL Server analysis services. These services were using port 80.

Then I restarted WAMP Server and it started working properly as before.

I have uninstalled the WampServer completelly, and deleted all files in /wamp folder, except www. This folder is preserved when uninstalling. After that I've installed it again and it works fine.

Important: This is helpful only in case when you already have your database backed up. All data from the database will be wiped out this way.

Delete everything from this file.

C:\wamp\bin\mysql\mysql5.1.36\data\mysql-bin.index

It works for me. My wamp server has turned green. Tnx a lot

D.Kumar
  1. Click on wamp (Yellow) icon

  2. Go Apache-> Service-> Test port 80. If port is available to use then go to Apache->Service-> Install Service

  3. then click on Restart All Services.

Amgad

Have you tried just changing the port number of MySQL and see if it works?

  1. Right click your WAMP icon

  2. Choose MySQL, in the menu choose "Use a port other than 3306"

  3. Change port number to be "3307"

DavidTaubmann

I've got a very similar problem, after a lot trying even the solutions in this question I concluded with THIS OTHER ANSWER.

I didn't replicated it here because it is NOT A CORRECT THING TO DO.

Basically is about re-installing MySQL (or the entire package) being sure to delete very well the old my-sql-data very well (back it up if you might need it) and stick on using 32 bit versions.

simplest this to do is find what other service is using the same service id as mysql does in windows.

When i looked through the list of services running on my pc (even after a restart...i still had the problem)

I quickly realised i had webmatrix installed on my computer previous to wamp server...webmatrix installed its own copy of mysql and set it to automatically startup another instance each time i logged in.

As soon as the other instance of mysql associated with web matrix was stopped (and changed from automatic startup to manual) my problem with WAMP mysql was solved.

I was running on the same problem, wampmysqld64 did not start, so I checked the Mysql log which you should find it inside the main wamp64 folder, and I found all the details on why is not working. on my computer I found another mysql instance is running so it prevents the wampmysqld64 to start. I stopped the other instance, and everything works fine after.

I have solved my problem just by following below steps:

  • On windows platform press WINDOWS + R
  • Put services.msc and press OK
  • Stop already running MySQL and
  • Go to Wamp and start/resume MySQL service

All the best

AlizayNoor

Click on wampserver icon then -> Apache -> httpd.conf -> search listen here you will find port number like this #Listen 12.34.56.78:80 Listen 80 change this port number with any other number like Listen 12.34.56.78:81 save this and now restart all servers it gets green to orange.

I had the same probelm for the past 3 days. Try this. It will definitely work. BEFORE proceeding with the installation of Wampserver, you must ensure that certain elements are installed on your system, otherwise Wampserver will absolutely not run, and in addition, the installation will be faulty and you will need to remove Wampserver BEFORE installing the elements that were missing. Uninstall wamp and download and Install microsoft visual c++ redistributable 2008 (https://www.microsoft.com/en-in/download/details.aspx?id=29), microsoft visual c++ redistributable 2012 (https://www.microsoft.com/en-in/download/details.aspx?id=30679), microsoft visual c++ redistributable 2015 (https://www.microsoft.com/en-in/download/details.aspx?id=48145). Now, reinstall wamp and it should work fine.

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