#47512 [Opn->Bgs]: can't connect to mysql

From: Date: Thu, 26 Feb 2009 18:32:31 +0000
Subject: #47512 [Opn->Bgs]: can't connect to mysql
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-134230@lists.php.net to get a copy of this message
 ID:               47512
 Updated by:       pajoye@php.net
 Reported By:      dnguyen at stewleonards dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         IIS related
 Operating System: window server 2003
 PHP Version:      5.2.8
 New Comment:

Do not use mysql 5.1 dlls with PHP (see other bugs report for an
explanation).


Previous Comments:
------------------------------------------------------------------------

[2009-02-26 18:16:17] dnguyen at stewleonards dot com

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 this bug report at http://bugs.php.net/?id=47512&edit=1



Thread (2 messages)

« previous php.bugs (#134230) next »