note 94730 added to faq.databases
| From: | rod at rodneysherer dot com | Date: | Fri, 20 Nov 2009 17:24:17 +0000 |
| Subject: | note 94730 added to faq.databases | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163139@lists.php.net to get a copy of this message | ||
I am using mysql-5.1.41-win32, php-5.3.0-Win32-VC9-x86, and apache_2.2.14-win32-x86-no_ssl and I am
having trouble connecting to my database using PHP. I have no problem with Apache in regards to
running htm or php files and can issue the phpinfo(); command without issue, but when I try to issue
mysql_connect($db_server, $db_user, $db_password) or die ( "<H3>Server
unreachable</H3>"); it restarts my Apache server with the following error in the log
file: [notice] Parent: child process exited with status 3221225477 -- Restarting.
I have looked up this error and the popular resolution seems to be to copy libmysql.dll all over the
place. I have the directory that is in in my path, so I don't think that is the issue, but to
make sure I did copy it to all applicable areas: System32, PHP bin, Apache bin. I have also made the
MySql/bin directory the first one in my path as recommended by another poster here. My connection
still fails and causes the Apache server to restart.
I also have several unrelated failures in my log file when Apache restarts:
[Fri Nov 20 12:02:23 2009] [notice] Parent: child process exited with status 3221225477 --
Restarting.
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on
line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_openssl.dll' - The specified module could not be found.\r\n in Unknown on
line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on
line 0
[Fri Nov 20 12:02:24 2009] [notice] Apache/2.2.14 (Win32) PHP/5.3.0 configured -- resuming normal
operations
[Fri Nov 20 12:02:24 2009] [notice] Server built: Sep 28 2009 22:41:08
[Fri Nov 20 12:02:24 2009] [notice] Parent: Created child process 1860
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on
line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_openssl.dll' - The specified module could not be found.\r\n in Unknown on
line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on
line 0
[Fri Nov 20 12:02:24 2009] [notice] Child 1860: Child process is running
[Fri Nov 20 12:02:24 2009] [notice] Child 1860: Acquired the start mutex.
[Fri Nov 20 12:02:24 2009] [notice] Child 1860: Starting 64 worker threads.
[Fri Nov 20 12:02:24 2009] [notice] Child 1860: Starting thread to listen on port 80.
Any ideas?
----
Server IP: 64.71.164.2
Probable Submitter: 72.78.110.243
----
Manual Page -- http://www.php.net/manual/en/faq.databases.php
Edit -- https://master.php.net/note/edit/94730
Del: integrated -- https://master.php.net/note/delete/94730/integrated
Del: useless -- https://master.php.net/note/delete/94730/useless
Del: bad code -- https://master.php.net/note/delete/94730/bad+code
Del: spam -- https://master.php.net/note/delete/94730/spam
Del: non-english -- https://master.php.net/note/delete/94730/non-english
Del: in docs -- https://master.php.net/note/delete/94730/in+docs
Del: other reasons-- https://master.php.net/note/delete/94730
Reject -- https://master.php.net/note/reject/94730
Search -- https://master.php.net/manage/user-notes.php