php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15319 mysql_connect not accepting arguements
Submitted: 2002-01-31 21:34 UTC Modified: 2002-02-01 00:05 UTC
From: admin at trinexx dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.1.1 OS: Red Hat 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: admin at trinexx dot com
New email:
PHP Version: OS:

 

 [2002-01-31 21:34 UTC] admin at trinexx dot com
I'm sorry about my lack of experience with these things, and I'm not sure if this is a problem with PHP or with my server configuration.

Whenever I use the mysql_connect function and store the result in a variable, the arguements aren't parsed.


mysql_connect("localhost", "username", "password");

works perfectly fine.


The problem arises when I use

$link=mysql_connect("localhost", "username", "password");

and it says "Access denied for user apache@localhost (Using password: NO)". Yes, I recoded the script for the main page of my site, but there are many things that I shouldn't have to (i.e. it should work like that ^), like vBulletin.

Like I said, I'm new at this and I don't know if it's my configuration or a problem with PHP...but I hope it's the former, and any help would be appreciated.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-01 00:05 UTC] mfischer@php.net
Please ask support questions at php-general@lists.php.net
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC