Parent: child process exited with status 3221225477 -- Restarting

By Emiley J. Viewed: 31795 times Emailed: 179 times Printed: 204 times Bookmark and Share



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.


Comments(20)


1. 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

By: Daniel Costa at 2009-02-25 06:11:27
2. 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

By: Anon at 2009-02-25 08:30:58
3. 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.

By: Head at 2009-02-27 00:47:43
4. 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!



By: CBL at 2009-03-02 02:52:00
5. finally! tnx google for taking me here :) my problem is fixed
tnx a lot dude

By: dorinn at 2009-04-02 10:32:40
6. Oh! Emiley, thank you very much! There are two long days of problem resolving and so easy answer.. It really works.

By: Alexey at 2009-04-09 14:17:31
7. 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.

By: Paulius at 2009-04-29 12:35:55
8. Try to copy libmysql.dll to \apache\bin also. I did it, restarted apache and it's running well for now.

By: SileNT at 2009-05-05 14:34:16
9. Thanks heaps, I had the file already there but it must have been an old one. I was having this problem for ages.

By: Jb at 2009-05-14 08:13:08
10. i don't use mysql,but oracle.
how to resolve this problem?
thank you!

By: Mike Zhu at 2009-06-23 19:20:06
11. 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.

By: Stan at 2009-06-29 12:14:25
12. 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.

By: Bruce at 2009-07-21 15:03:02
13. 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

By: agt at 2009-10-11 09:24:06
14. 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

By: Bingo at 2009-11-07 20:11:52
15. 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).

By: putra at 2009-12-18 00:39:42
16. Thanks a lot...I've been trying to fix my apache for 2 days...thanks again.

By: Lázaro at 2010-01-20 03:32:07
17. Its not working for me, also tried things written in comments ... if there is any alternative solution, plz help ....

By: webian at 2010-01-24 10:33:23
18. Thanks to java-samples.com website. and very useful.
Again and agian Read the our site

Thanks a lot.

By: Samuel . A at 2010-01-29 01:29:51
19. 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!.

-V

By: Vsk at 2010-02-22 00:48:42
20. 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.

By: nick marinho at 2010-07-24 17:45:59

Your name (required):


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


Your sites URL (optional):


Your comments:


Enter Code:
The Captcha image

Latest Tutorials

[2010-07-03]A Basic Example using PHP in AWS (Amazon Web Services)
[2010-07-03]Building a Video Sharing Site using PHP in AWS
[2010-06-30]XMLRPC for PHP - A simple client and server program
[2010-06-29]How to fix: Warning: Visiting this site may harm your computer - domainameat.cc
[2009-06-13]PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php4/lib/php/extensions/no-debug ......
[2009-02-24]Using Text file as database in PHP
[2009-02-07]Parent: child process exited with status 3221225477 -- Restarting
[2009-01-14]Install and use PHPUnit to test your PHP pages for errors.
[2008-12-29]Using Codeigniter for PHP application development
[2008-12-01]Creating or Opening a File in PHP
[2008-12-01]Opening a Remote File in PHP
[2008-12-01]Reading contents of a File into a String in PHP
[2008-12-01]Counting Lines, Paragraphs, or Records in a File using pc_split_paragraphs() in PHP
[2008-12-01]Reading word by word from a file in PHP
[2008-12-01]Reading .ini files in PHP

More Latest News

Most Viewed Articles (in last 30 days)
isset() function in PHP
Reading .CSV file in PHP
Parent: child process exited with status 3221225477 -- Restarting
Handling BLOB in PHP and MySQL
Extract files from a .zip file using PHP
Find Difference between two dates in PHP
Appending One Array to Another in PHP
Upload and Download files with FTP in PHP
preg_split() and explode() in PHP
Reading and Writing .gz files in PHP
Install and use PHPUnit to test your PHP pages for errors.
public, protected, and private Properties in PHP
Reading word by word from a file in PHP
preg_match(), function preg_match_all(), preg_grep() in PHP
Using Text file as database in PHP
Most Emailed Articles (in last 30 days)
Opening a Remote File in PHP
Reading .CSV file in PHP
Counting Lines, Paragraphs, or Records in a File using pc_split_paragraphs() in PHP
Reading word by word from a file in PHP
Removing Duplicate Elements from an Array in PHP
Find Difference between two dates in PHP
Reading contents of a File into a String in PHP
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php4/lib/php/extensions/no-debug ......
isset() function in PHP
Setting cookies in PHP
Different versions of PHP - History and evolution of PHP
Traversing Arrays Using list() and each() in PHP
Creating or Opening a File in PHP
Extract files from a .zip file using PHP
Upload and Download files with FTP in PHP