I'm a developer and I have Apache, PHP, MySQL trio installed on my machine.
I have no problem accessing to my database via command-line or using any software in MySQL GUI Tools package. I can send queries to create tables, databases, retrieve data, etc, with no problem.
But when I write a PHP code which uses database and try to run in on my computer, I get a run-time error message. MS Visual Studio is installed on my computer so its run-time error handling dialog windows appears, reporting
"An unhandled win32 exception occurred in httpd.exe [4892]"
error message.
I suspect the DLL files in PHP directory. The libmysql.dll (3.132kb) file in my PHP directory is the original DLL file I copied from MySQL setup directory. Also php_mysql.dll (45kb) was the original one came with PHP setup in "ext" directory of PHP.
I reinstalled my MySQL server, but the problem did not disappear.
Where should I start to inspect this problem?
Is there anything you can suggest?
Is there anywhere I can redownload these DLL files?
Software
---------
Apache 2.2.10
PHP 5.2.6
MySQL 5.1
Windows XP Home SP3
AVG Anti-virus Free Edition
No firewall installed
PHP gives run-time error when I try to access database
Moderator: General Moderators
- hkBattousai
- Forum Newbie
- Posts: 1
- Joined: Fri Sep 18, 2009 3:41 am