php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40366 fix
Submitted: 2007-02-05 18:47 UTC Modified: 2007-02-06 17:48 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: anghelcata at yahoo dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 5.2.0 OS: windows xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anghelcata at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-02-05 18:47 UTC] anghelcata at yahoo dot com
Description:
------------
I HAD AN ERROR MESS WHEN i TRY TO CONNECT TO MYsql DATABASE
This since I had upgrade from PHP 5.1.2 to PHP 5.2.0 

Best Regards
 ing. Catalin Anghel

Reproduce code:
---------------
I have this script :

<?php
$result = mysql_connect("localhost", "root", "axa") or die("Eroare de conectare la MySQL: " . mysql_error()); 
mysql_select_db("evenimente", $result);
?>

And the result : error 1045 ...

Note thet on PHP 5.1.2 work fine !!




Expected result:
----------------
a connection to my databese

Actual result:
--------------
error 1045

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-05 18:49 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2007-02-05 18:52 UTC] anghelcata at yahoo dot com
Hey !! 
You don't understand ?? In PHP 5.1.2 it works great!!!
In PHP 5.2.0 it's crash!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 [2007-02-05 19:03 UTC] tony2001@php.net
MySQL problems are noway PHP bugs.
Please report them to MySQL developers or better find a support forum and I'm sure you'll figure it out.
 [2007-02-05 19:11 UTC] anghelcata at yahoo dot com
Dear Tony2001 at ...

The problem apears when I upgarde from PHP 5.1.2 to PHP 5.2.0.
The connection to mySQl server works great.
The "mysql_connect" function seems to be the source of the error.
I have tried all possible connection to mySQl.

Thanks for Your support!!!
         AC
 [2007-02-06 17:48 UTC] anghelcata at yahoo dot com
Dear Tony ,

I figured out the problem.
The problem was that the php 5.2.0 installer did not wright the php.ini file corectly. 
These two lines :

upload_tmp_dir="C:\DOCUME~1\catalin\LOCALS~1\Temp\php\session"
session.save_path="C:\DOCUME~1\catalin\LOCALS~1\Temp\php\upload"

it generates the problem.

I comment that lines and all problems gone out!!

Best regards
 ing. Catalin Anghel
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 06:01:34 2024 UTC