Intermittent error with MySQL and phpBB
From: DrClaw (drclaw_at_NOSPAMhotmail.com)
Date: 09/28/03
- Next message: Magnus: "Re: UNIX Book Recommendation"
- Previous message: David Lord: "Re: Floppy boot disallowed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 28 Sep 2003 21:46:02 +1000
I am having intermittent access problems with MySQL and phpBB... I am unsure
if it is a problem with MySQL, FreeBSD or php, so i figured i'd try my luck
here, as you people seem to know your stuff (tm)
I setup a small forum (7-8 users) that uses phpBB, and I am getting
intermittent "access denied" errors when accessing the database. They occur
completley randomly, sometimes I get a string of 5 or 6, whereas I got 1 for
the first time in 2 days today.
I have upgraded my MySQL config settings to my-medium.cnf. mod_php4 is the
current release version (updated it from the ports tree yesterday), and
apache is current also (also upgraded).
After referring to the online MySQL documentation, it would seem that this
should only occur when the user does not have access at the specified host,
or the password is incorrect. As far as I can tell from the phpBB
layout/settings, the password, hostname, username are all set in a central
config file on install, and are never modified again (I have edited the
error producing script to confirm this next time the error occurs - it's
going to dump the attempted connection values to file), so therefore if the
password/hostname is incorrect, it should fail every single time, not
intermittently.
I have pretty much confirmed that PHP is using the correct password/hostname
combination - error just occured again and i logged the details used.
Any suggestions as to why this would be occurring? It seems to me that MySQL
is having errors checking the users password / login details, but I am
unsure how to test this. I have enabled logging on the MySQL side of things,
and it pretty much echos the error message given my httpd :
030928 20:24:25 465 Connect Access denied for user:
'phpBB@localhost' (Using password: YES)
Error message from /var/log/messages :
Sep 25 23:24:59 apone httpd: PHP Warning: mysql_connect(): Access denied
for user: 'phpBB@localhost' (Using password: YES) in
/usr/local/www/data/phpBB2/db/mysql4.php on line 48
phpBB 2.0.6
mysql Ver 13.5 Distrib 4.1.0-alpha, for portbld-freebsd5.1 (i386)
5.1-RELEASE FreeBSD 5.1-RELEASE #2
Thanks for your help - all comments welcome :)
- Next message: Magnus: "Re: UNIX Book Recommendation"
- Previous message: David Lord: "Re: Floppy boot disallowed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|