Parent: child process exited with status 3221225477 -- Restarting

By: Emiley J. Emailed: 1787 times Printed: 2615 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

If you are getting this error, you are probably trying to use Apache, MySQL and PHP in a windows system. Just do this simple step to solve this issue.

It is quite frustrating to see that all your PHP pages suddenly doesn't seem to work. If you check your Apache log file you will see this error: Parent: child process exited with status 3221225477 -- Restarting

Don't worry just goto the PHP installation folder and look for libmysql.dll file.

Just copy this file and save it to your windows\system32 folder.

Now restart MySQL and Apache servers.

Everything should be fine now and all your PHP pages will work as normal.

PHP Home | All PHP Tutorials | Latest PHP Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.

Bookmark and Share


1. View Comment

it is 3 days since I searched resolution. It was however so easy. Thanks a lot. It is thanks to people as you that Internet is one truth mines information

View Tutorial          By: Daniel Costa at 2009-02-25 06:11:27
2. View Comment

i get this error too.
: Parent: child process exited with status 3221225477
but i had copy libmysql.dll to windows\\system32 folder before i got the error.
apache2.2.4 mysql4.1.3 php5.2.8

View Tutorial          By: Anon at 2009-02-25 08:30:58
3. View Comment

i get this error too but i dont start the mysql server... i dont't think, the libmysql.dll is the reason for this restart.

View Tutorial          By: Head at 2009-02-27 00:47:43
4. View Comment

Thank you. This was a very annoying problem until I came across your fix. It's now nearly 5:00 AM local time and this is finally working. Thanks again!

View Tutorial          By: CBL at 2009-03-02 02:52:00
5. View Comment

finally! tnx google for taking me here :) my problem is fixed
tnx a lot dude

View Tutorial          By: dorinn at 2009-04-02 10:32:40
6. View Comment

Oh! Emiley, thank you very much! There are two long days of problem resolving and so easy answer.. It really works.

View Tutorial          By: Alexey at 2009-04-09 14:17:31
7. View Comment

I get this error too, but my scrit doesint use mysql, so copying the file doesint help. There must be other reason for this error.

View Tutorial          By: Paulius at 2009-04-29 12:35:55
8. View Comment

Try to copy libmysql.dll to \apache\bin also. I did it, restarted apache and it's running well for now.

View Tutorial          By: SileNT at 2009-05-05 14:34:16
9. View Comment

Thanks heaps, I had the file already there but it must have been an old one. I was having this problem for ages.

View Tutorial          By: Jb at 2009-05-14 08:13:08
10. View Comment

i don't use mysql,but oracle.
how to resolve this problem?
thank you!

View Tutorial          By: Mike Zhu at 2009-06-23 19:20:06
11. View Comment

3221225477 is C0000005 in hex notation, which is just the good old general protection fault, caught by the windows kernel.

In other words: Apache itself, some Apace module or any of the DLLs used by Apache or its modules crashed. Probably because of some faulty C code using an invalid pointer.

An inadequate version of libmysql.dll in the system32 folder (or elswhere in the path) *could* indeed be the cause, and replacing it with the one from the php folder could be a solution.

Just be aware there are plenty of other possible causes for the quoted error message, so the original post is really somewhat misleading.

View Tutorial          By: Stan at 2009-06-29 12:14:25
12. View Comment

Well, this fix worked form me using Apache 2.2.11, PHP 5.2.8 and MySQL 5.1. 36. While Stan above is undoubtedly correct that this is not a "permanent" solution, it sure gets my work back on track. Thanks again.

View Tutorial          By: Bruce at 2009-07-21 15:03:02
13. View Comment

I have copied c:\php\bin\msvcr80.dll to C:\Program Files\httpd\bin and have solution my problem of Parent: child process exited with status 3221225477
Hope this help anyone. Regards

View Tutorial          By: agt at 2009-10-11 09:24:06
14. View Comment

Windows XP
libmySQL.dll in package MySQL5.1.40 do not work with Apache5.2.14 and PHP5.2.11
Apache shutdown with message above in log file
I have copied the libmySQL.dll included in package PHP5.2.11 in MySQL/bin directory and have solution my problem

View Tutorial          By: Bingo at 2009-11-07 20:11:52
15. View Comment

in my case the culprit is xdebuger dll version 2.0.5.
after i changed to older version 2.0.0
my apache work smoothly now (more than 1 hour without crash, usually there is 1 crash every 10 minutes).

View Tutorial          By: putra at 2009-12-18 00:39:42
16. View Comment

Thanks a lot...I've been trying to fix my apache for 2 days...thanks again.

View Tutorial          By: Lázaro at 2010-01-20 03:32:07
17. View Comment

Its not working for me, also tried things written in comments ... if there is any alternative solution, plz help ....

View Tutorial          By: webian at 2010-01-24 10:33:23
18. View Comment

Thanks to website. and very useful.
Again and agian Read the our site

Thanks a lot.

View Tutorial          By: Samuel . A at 2010-01-29 01:29:51
19. View Comment

May be someone would find this useful.

In my case too, apache crashed with the same error. My PHP script was trying to resize images. Using functions like imagecreatefromjpeg (I should be saying using GD functions!).

The reason it kept crashing is because I just renamed a .gif file to .jpg file. Windows doesn't complain. It will keep showing you the image just fine. But, GD functions couldn't handle it...and apache would crash and restart.

So it may not be completely related to mysql api alone(and hence the solution of copying the dll to other location).

Hope this helps others like me!.


View Tutorial          By: Vsk at 2010-02-22 00:48:42
20. View Comment

The only thing that really was the solution to my problem was copy libmysql.dll to apache\bin directory.
Thank you and thanks google for send me here.

View Tutorial          By: nick marinho at 2010-07-24 17:45:59
21. View Comment

Apache was failing to deliver php pages that were accessing the mysql database with the error above. Turned out that I had just put the mysql/bin into my path. So, that is how I got conflicting .dlls into the mix (Php's executables were already in the path). Removing the mysql/bin from the path solved the problem. I prefer this solution to copying the php version of the executables over to windows directory.

View Tutorial          By: Ted at 2010-11-13 08:13:29
22. View Comment

Another solution to those, who feel that the problem is independent from mysql:

1. Open php.ini
2. Locate and comment out "error_log =" lines

In my environment php pages on my root page stopped working when I set the
location of the error log file in the php.ini. I got the error message about
Apache restarting as described in this topic. Once I have commented out the
mentioned line, php pages started to work again.
Note: I have tried to put the log file among other html and php files within the
public area of Apache htdocs.

View Tutorial          By: Zoltán P. Ackermann at 2010-12-09 01:58:51
23. View Comment

Thnks for your help..

View Tutorial          By: ramu at 2011-06-18 07:56:56
24. View Comment

Yesterday afternoon, I tried a lot of different suggestions from various sources: nothing worked. This was the one that did it, and immediately as well. Thanks a lot!

View Tutorial          By: Leo at 2011-07-26 04:19:15
25. View Comment

Thanks for the tips.

I hesitated to put this file into the System32 directory, instead I made a search and found another libmySQL.dll in the MySQL \bin-folder. I renamed it, and now it sorks for me too.


View Tutorial          By: Dick at 2011-10-09 15:21:50
26. View Comment

Your answer was right on the money! After searching all over the web I googled the error message and came up with your answer. It worked like a charm.
merci boucoup.

View Tutorial          By: ooh la la at 2013-07-19 20:33:41
27. View Comment

Thank you! Solved many headaches :)

View Tutorial          By: Dominik at 2013-07-30 16:51:46

Your name (required):

Your email(required, will not be shown to the public):

Your sites URL (optional):

Your comments:

More Tutorials by Emiley J.
Error generating from manifest
ERROR 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client
IIS and Tomcat - how to configure to work together
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php4/lib/php/extensions/no-debug ......
Adding your own Application icon for your J2ME application (jar file)
Creating Menus in Code using
Traversing all files in a directory using Ruby
Using Proxy to connect to URLs in Ruby
POST a form in Ruby
Reading URL content using Ruby (HTTP)
dRuby client/server mode sample program
Benchmark module in Ruby
encoding and decoding in Ruby using Base64 Module
Module Abbrev in Ruby
Standard Library Packages in Ruby

More Tutorials in PHP
PHP code to import from CSV file to MySQL
PHP code to write to a CSV file from MySQL query
PHP code to write to a CSV file for Microsoft Applications
Convert XML to CSV in PHP
Password must include both numeric and alphabetic characters - Magento
PHP file upload (Large Files)
PHP file upload prompts authentication for anonymous users
PHP file upload with IIS on windows XP/2000 etc
Error: Length parameter must be greater than 0
Multiple File Upload in PHP using IFRAME
Resume or Pause File Uploads in PHP
Exception in module wampmanager.exe at 000F15A0 in Windows 8
Handling file locks in PHP
HTML table output using Nested for loops in PHP
Count occurrences of a character in a String in PHP

More Latest News
Most Viewed Articles (in PHP )
Parent: child process exited with status 3221225477 -- Restarting
isset() function in PHP
Function to return number of digits of an integer in PHP
preg_split() and explode() in PHP
Different versions of PHP - History and evolution of PHP
Convert XML to CSV in PHP
Count occurrences of a character in a String in PHP
PHP code to write to a CSV file from MySQL query
A Basic Example using PHP in AWS (Amazon Web Services)
Convert a hex string into a 32-bit IEEE 754 float number in PHP
Exception in module wampmanager.exe at 000F15A0 in Windows 8
Password must include both numeric and alphabetic characters - Magento
PHP code to write to a CSV file for Microsoft Applications
Handling BLOB in PHP and MySQL
PHP code to import from CSV file to MySQL
Most Emailed Articles (in PHP)
Booleans in PHP
Opening a Remote File in PHP
Exception in module wampmanager.exe at 000F15A0 in Windows 8
PHP code to import from CSV file to MySQL
Variables in PHP
Strings in PHP
Polymorphism in PHP
instanceof OPERATOR in PHP
Using Sessions in PHP
preg_split() and explode() in PHP
Counting Lines, Paragraphs, or Records in a File using pc_split_paragraphs() in PHP
Extract files from a .zip file using PHP
Cannot load /usr/local/apache/libexec/ into server:
Password must include both numeric and alphabetic characters - Magento
switch Statements in PHP