








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









AMPPS MySQL not working, Solution!
Last active 22 hours ago
You have soothed my 10 minute panic attack, good sir.
pjdepractica commented on Sep 14, 2016 Thanks.
vianhtu commented on Sep 27, 2016 Thanks
farooqsultan commented on Sep 29, 2016 Gr8 it worked. Thanks.
johnnydoe82 commented on Oct 21, 2016 sudo killall mysqld saved me. thanks! syeedredom commented on Oct 22, 2016 Thank u so much...
xi-cui commented on Nov 9, 2016 Thanks! (* ・▿ ・*) /
masoudrad commented on Nov 14, 2016 Thanks a lot.
chalaco commented on Dec 20, 2016 Thank you!
duongcgc commented on Jan 18, 2017 • Oh, work well. Thank you suifengtec very much!
edited
davoodefard commented on Feb 6, 2017 thanks a lot. it works well.
alexpetrut93 commented on Feb 19, 2017 thankyou
Eduardix1 commented on Mar 7, 2017
it worked, #bigHug ...
Gingira commented on Sep 13, 2017 • None of this works for me. It keeps getting worse as I try fixing, reinstalling and retrying the instructions.I already lost some projects due to this. Edit: Still not fixed. I give up. This is ridiculous.
edited
dewiikaaa commented on Sep 14, 2017 • Thank you, It works :)
edited
periplox commented on Sep 27, 2017 Thanks! It works great, but now I have to do this everytime I start Ampps. Is there any definitive solution for this?
danemorgan commented on Oct 11, 2017 Perfect! Thanks for this solution.
Mutsvangwa commented on Oct 29, 2017 Thanks
Mounir96 commented on Oct 31, 2017 Perfect! Thanks for this solution.
khanroar commented on Nov 13, 2017 • Dear osseigh, I faced same issue through searches I found this method shown in the url https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-windows-firewall-for-database-engine-access
You simply change the port 3306 and make it allow connection and then make your program mysql and mysqld which is located inampps/mysql/bin allow connection in windows firewall.
To open a port in the Windows firewall for TCP accessOn the Start menu, click Run, type WF.msc, and then click OK. In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.In the Rule Type dialog box, select Port, and then click Next. In the Protocol and Ports dialog box, select TCP. Select Specific local ports, and then type the port number of the instance of the DatabaseEngine, such as 3306 for the default instance. Click Next. In the Action dialog box, select Allow the connection, and then click Next.In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.In the Name dialog box, type a name and description for this rule, and then click Finish.
edited
To open access to mysqld.exe when using dynamic portsOn the Start menu, click Run, type WF.msc, and then click OK. In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.In the Rule Type dialog box, select Program, and then click Next. In the Program dialog box, select This program path. Click Browse, and navigate to the instance of mysqld Server that you want to accessthrough the firewall, and then click Open. By default, mysql Server is at C:\Program Files\ampps\Mysql\Bin\mysqld.exe Click Next. In the Action dialog box, select Allow the connection, and then click Next.In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.In the Name dialog box, type a name and description for this rule, and then click Finish.
To open access to mysql.exe when using dynamic portsOn the Start menu, click Run, type WF.msc, and then click OK. In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.In the Rule Type dialog box, select Program, and then click Next. In the Program dialog box, select This program path. Click Browse, and navigate to the instance of mysql Server that you want to access throughthe firewall, and then click Open. By default, mysql Server is at C:\Program Files\ampps\mysql\Bin\mysql.exe Click Next. In the Action dialog box, select Allow the connection, and then click Next.In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.In the Name dialog box, type a name and description for this rule, and then click Finish.
In above documentation Microsoft shown process for mssql instead you try for mysql and mysqld.exe. I hope you understood. P.S I have windows 10 and 6gb ram core i
pdxvr commented on Nov 13, 2017 A solution that is persistent across reboots would be nice.
ngvcanh commented on Nov 16, 2017 It is not work for me, I using Windows 10 64bit. In mysql-bin.**** Ampps > mysql > data , there are no folders or files like ib_logfile** and mysql-bin.index ,
Help me
KhalilAhmadDanish commented on Nov 22, 2017 Perfect! Thanks for this solution.
djlimix commented on Nov 26, 2017 • Thanks, you saved me.
edited
george-campos commented on Dec 12, 2017 I try 'innodb_force_recovery = 1' and open windows firewall ports, both cases not working for me :(In Ampps \ mysql \ data, has no files to delete. I give up and install WAMP :/ Win 7 64bits professional - SP1 - i7 - 8GB
rivman commented on Dec 12, 2017 • Hello,Having the same problem here. It seems that the error is generated on AMPPS shutdown (PC restart or log off). In my case the problem is with phpMyAdmin table :
edited
mariyazaveri commented on Jan 29, 2018 Thank You so much..
peacefulseeker commented on Jan 30, 2018 Thanks.Worked like a charm! But than got wordpress error and commeted out that line again. But anyway worked to recover once. https://stackoverflow.com/questions/25155777/operation-not-allowed-when-innodb-forced-recovery-0-sqlyog
onytoo commented on Feb 6, 2018 • Work for me, thanks.
edited
aadelop commented on Feb 6, 2018 Thanks! Work Perfectly
r-wells commented on Mar 23, 2018 Worked for me too, thank you for this. In the error log, it said that MySQL was not shut down correctly, is there a special way it needs to be shut down to avoid this?
Gio9393 commented on Apr 10, 2018 Hello, I also have the same problem. And I am a newbie, so where should I write the line innodb_force_recovery = 1? I opened the configurationin Ampps and there are many [mysqld], after which one should I write it? And where exactly? thanks a lot
nelsondcosta23 commented on Apr 17, 2018 I have the same problem and the solution with innodb_force_recovery = 1 didn't work. When I run /ampps/mysql/bin/mysql.exe it was writtenthat MSVCR100.dll was missing. I solve that by installing Visual C++ 2010 Runtime, both 32bit and 64bit versions, from url:
32Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)http://www.microsoft.com/en-us/download/details.aspx?id=
64Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)http://www.microsoft.com/en-us/download/details.aspx?id=
This works for me and mysql start working :)
williamshake commented on Apr 18, 2018 Work Perfectly, Thanks +1:
JohnnyWalkerDes… commented on Apr 19, 2018 @nelsoncost23's solution worked for me... for a while, but eventually MySQL stops running again. Trying to turn it on makes it jump to OFFagain. Nothing works! I've got this issue on three machines. All with a clean install of Windows! :(
ireneraissa commented on Apr 21, 2018 Thanks a lot, it work for me
yangprachak commented on Jun 6, 2018 Thanks a lot, it work for me too.
GilParedes commented on Jun 10, 2018 Thanks!!
man-rindaps commented on Jul 9, 2018 i have tried to do that but any time i shut down my system and put it back on,MySQL dosent come back on on ammps.what can i do please?
mattrhummel commented on Jul 21, 2018 This works great! To not have to do this each time I reboot would be great also.
mzaenuddin commented on Jul 31, 2018 thanks a lot. it works well.:)
marcelsanting commented on Aug 3, 2018 Great it worked, thx
SbstnDC commented on Aug 9, 2018 Thanks!
RubanzaMichael commented on Aug 23, 2018 Thank you So much it worked!!****
Anas1981 commented on Oct 9, 2018 thanks you dear
officialmmt commented on Oct 22, 2018
hermione3690 commented on Oct 22, 2018 For those still unable to get it to work by trying the above mentioned, try the following
Escribo en español para usuarios de Windows 10 en español por supuesto. Instalé Ammps y no cargaba el servidor MySQL. Ensayé lassoluciones anteriores hasta que advertí que deteniendo el servicio que en mi caso se llamaba MySQL80 arrancaban todos los servidores de Ampps. Sin más esta fue mi solución:Ctrl + Alt + Supr (o Del) dependiendo del teclado y me lleva al menú donde selecciono el Administrador de Tareas. También se puede llegar directamente con la combinación Ctrl + Shift + Esc. Otra manera es Tecla de Windows+R". Una vez en "Ejecutar" escribimos "taskmgr". (sin lascomillas). Una vez en el administrador de tareas seleccionamos la pestañaOrdenamos por nombre para facilitar la búsqueda. Servicios en la parte superior izquierda, Navegamos hasta MySQL y regularmente está con Tipo de inicioCon click derecho en el mouse selecciono Abrir Servicios Automático.
Nuevamente navegamos hasta encontrar MySQL80 y el modo de inicio selecciono Manual
Ahora mi Ampps inicia todos sus servidores bien. Espero que les sirva mi solución.
ptmocho commented on Jan 10 I have the same problem and the solution with innodb_force_recovery = 1 didn't work. When I run /ampps/mysql/bin/mysql.exe it waswritten that MSVCR100.dll was missing. I solve that by installing Visual C++ 2010 Runtime, both 32bit and 64bit versions, from url: 32Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)http://www.microsoft.com/en-us/download/details.aspx?id= 64Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)http://www.microsoft.com/en-us/download/details.aspx?id= This works for me and mysql start working :) Only this solved the problem for me!!! Thank you m8!!!
odil-io commented on Jan 21 I have the same problem and the solution with innodb_force_recovery = 1 didn't work. When I run /ampps/mysql/bin/mysql.exe it waswritten that MSVCR100.dll was missing. I solve that by installing Visual C++ 2010 Runtime, both 32bit and 64bit versions, from url: 32Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)http://www.microsoft.com/en-us/download/details.aspx?id= 64Bit: Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)http://www.microsoft.com/en-us/download/details.aspx?id= This works for me and mysql start working :) Only this solved the problem for me!!! Thank you m8!!! As found on https://stackoverflow.com/questions/47407106/mysql-not-starting-in-ampps My solution was to install both x86 and x64 versions. Even though the AMPPS installer also suggests installing Microsoft Visual C++. If you try theC++. It might confict and cause other problems. innodb_force_recovery = 1 solution first, don't forget to remove it before you restart AMPPS again after installing Microsoft Visual
areebqaisar commented on Jan 29
64 bits: pacote redistribuível do Microsoft Visual C ++ 2010 SP1 (x 64) Isso funciona para mim e o mysql começa a trabalhar :) deu certo para mim, ficou tudo verde :-)
CompleteComme… commented on Jun 28 Hello:I am a newbie here. I have a medium (to low) level of expertise. I have installed and run various types of servers before, and I am familiar with ini config files and how to edit and resave them in a text editor. I am reasonably comfortable with command lines, also. I have a working knowledgeof object oriented coding (VB.Net), and a pretty reasonable knowledge of Lan and Wan networking. I am sort of new to security and crytography. I recently found a link that seems to explain exactly why mysql gives the error with the InnoDB tables when you restart the host computer.https://superuser.com/questions/520208/mysql-fault-linked-to-windows-shutdown-failure
The repair of writing "innodb_force_recovery = 1" into the my.ini file and then commenting it out again before restarting mysql worked for me. I believe that the problem is that ampps installed mysql as an application rather than a service. As a result, it never receives the windowsWM_QUERYENDSESSION command (because this only stops services. And Ampps didn't install the stack as services, but rather, as applications.) Does this sound right?If so, can anyone tell me how to (safely) reinstall mysql as a windows service while leaving Ampps in place? I would also like to reinstall apache as a service (with ampps) in place, to, if possible.Then, I would go into services.msc and configure them both to "automatic" start. Thanks in advance. (very much)PS: if I have to completely reinstall ampps, can you tell me how to ensure it installs the stack as services this time? (I ** did ** run the install exe as administrator.)Thank you! PPS: I found the file: ampps.ini......here is the contents: [General]startup=true AMServices=falseAMServer=true Python=falseUpdate=true Ftp=falseEditor=false Close=trueRemPass=false SavePass=false what if I change the item AMServices to true? (Then restart the ampps stack). Would that cause mysql and apache to run as services? Would Ihave to restart windows, then uncomment out the "innodb_force_recovery = 1". then comment it out again and restart? Thanks for any help and insight.
guiguilyon commented on Aug 20 I was stuck in a login screen loop after doing this. I just had to restart mysql to fix it.
cnivesh009 commented 22 days ago There might be many reasons why mysql won't start, but one of the reasons why this happens is - unusual shutdown of mysql, which can beviewed in the error log as pointed out by @r-wells
In my case, I restarted my computer without quitting the Ampps and the error log stated that So make sure to quit Ampps before restarting the system or shutting it down. mysql was not shut down correctly
However, if mysql is not shut down correctly and run the ampps set up again without deleting the ampps or mysql. innodb_force_recovery = 1 doesn't work then:
sidmike commented 22 hours ago There might be many reasons why mysql won't start, but one of the reasons why this happens is - unusual shutdown of mysql, which canbe viewed in the error log as pointed out by @r-wells In my case, I restarted my computer without quitting the Ampps and the error log stated that So make sure to quit Ampps before restarting the system or shutting it down. mysql was not shut down correctly However, if mysql is not shut down correctly and run the ampps set up again without deleting the ampps or mysql. innodb_force_recovery = 1 doesn't work then:
Worked as hell! Thanks.