1 (edited by brocebeats 2007-11-21 09:08)

Topic: [1045] dbconn: mysql_connect: Access denied for user 'www-data'@'local

I had a fully working punbb forum yesterday but all of a sudden any time i try to post, or edit anything that uses a query i get this error

[1045] dbconn: mysql_connect: Access denied for user 'www-data'@'localhost' (using password: NO)

any ideas on how to fix this, and my apologies for registering and asking a question on the first post i hate it when people do that to me :-)

2

Re: [1045] dbconn: mysql_connect: Access denied for user 'www-data'@'local

if you have not changed anything on your website/forum, talk to your host

Re: [1045] dbconn: mysql_connect: Access denied for user 'www-data'@'local

i edited the style and a template file but i dont know how that would matter at all

Re: [1045] dbconn: mysql_connect: Access denied for user 'www-data'@'local

Talk to your host then, your MySQL details have changed

5 (edited by brocebeats 2007-11-24 09:14)

Re: [1045] dbconn: mysql_connect: Access denied for user 'www-data'@'local

ok so I added an announcement and then tried to edit it and the error is back, no one changed any sql or anything in the db or any MySQL details.  For some reason its changing to inject this www_data instead of the correct one.

now i cant fix the announcement b/c it wont let me change any admin options. Any time i change any admin options including moderate.php i get the error.

There has to be a reason this is happening

EDIT ok i figured out the issue any time i edit an admin option it changes my root dir from http://whatever.com/forums  to http://whatever.com/punbb

punbb was my original dir but i thought all i needed to do to change it was to edit the root dir in admin options then change the dir name

Re: [1045] dbconn: mysql_connect: Access denied for user 'www-data'@'local

It doesn't make up the www-data name, you must have it set in config.php
And if I were you, I would delete all the .php files in the cache directory and make sure base URL is set correctly in the database. That way, there should be no reason for it to reset.

Re: [1045] dbconn: mysql_connect: Access denied for user 'www-data'@'local

where do you set the URL in the db

Re: [1045] dbconn: mysql_connect: Access denied for user 'www-data'@'local

config table, conf value where conf name is o_base_url