From:             dnguyen at stewleonards dot com
Operating system: window server 2003
PHP version:      5.2.8
PHP Bug Type:     IIS related
Bug description:  can't connect to mysql

Description:
------------
i'm trying to set up php,mysql and i can't get it to work. i can create
table and user name fine in mysql. i can do phpinfo() fine. but when i try
to have connection to mysql from php, it keeps giving me an error saying
php has encountered an access violation at 01b0ac5a
can you help.

Reproduce code:
---------------
<?php
$db_server='localhost';

$db_user='test_user';
$db_password='test_password';

$db_name='test';
$connect_test = mysql_connect("$db_server", "$db_user", "$db_password") 
  or die("Unable to connect to the database!");
print "The connection to the \"$db_name\" database was successful.";
?>

Expected result:
----------------
the connection to test database was successful.
or unable to connect to the database

Actual result:
--------------
the connection to test database was successful.
or unable to connect to the database

-- 
Edit bug report at http://bugs.php.net/?id=47512&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47512&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47512&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47512&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47512&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47512&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47512&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47512&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47512&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47512&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47512&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47512&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47512&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47512&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47512&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47512&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47512&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47512&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47512&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47512&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47512&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47512&r=mysqlcfg

Reply via email to