Re: php 4.2.1 and MySQL
| From: | Tyler Longren | Date: | Mon, 22 Jul 2002 15:41:47 +0000 |
| Subject: | Re: php 4.2.1 and MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108874@lists.php.net to get a copy of this message | ||
No extra parameters have been added to the mysql_connect() function.
The error you're seeing is straight from mysql...so it's really not
php. Mysql says "Using password: YES" because you're trying to login
in with a password. If you took out "password" in the mysql_connect()
function, it'd say "Using password: NO".
Go into mysql and make sure the username/password haven't been changed
and make sure the machine that php is on is allowed to connect to the
mysql server.
Good luck,
--
Tyler Longren
Captain Jack Communications
tyler@captainjack.com
www.captainjack.com
On Mon, 22 Jul 2002 08:32:35 -0700
"Brian McLaughlin" <bmclaugh@georgefox.edu> wrote:
> We recently upgraded to php 4.2.1 with Apache and our scripts that
> access MySQL now fail in mysql_connect(). Apache shows the
> following:
>
> Warning: Access denied for user: 'fred@web.georgefox.edu' (Using
> password: YES) in /var/apache/share/scripts/ais/itweb/projects.php on
> line 40
>
> Warning: MySQL Connection Failed: Access denied for user:
> 'fred@web.georgefox.edu' (Using password: YES) in
> /var/apache/share/scripts/ais/itweb/projects.php on line 40
> Sorry... Could not connect to database
>
> Not sure why it says it's using password: YES. The call is
> mysql_connect("host", "fred", "password") as it always has been.
I
> thought that perhaps the function call has changed to include an extra
> parameter or something, but haven't found anything that says that's
> true.
>
> Can someone tell me what I can do to get these scripts working again?
> All of my scripts that use MySQL are failing in this same way.
>
> Thanks,
>
> Brian McLaughlin
> bmclaugh@georgefox.edu
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php