Access denied for user...

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
help.scrivimi
Posts: 2
Joined: Wed Nov 12, 2008 9:28 am

Access denied for user...

Post by help.scrivimi »

I have installed correctly the blog.
I have used it for some days and now if try to access it,
I receive the following error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nameuserDB'@'localhost' (using password: YES) in D:\Home\namedomain.net\httpdocs\serendipity\include\db\mysql.inc.php on line 270

Why?
Thank you
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Access denied for user...

Post by garvinhicking »

Hi!

Could it be you'Re using Firefox3 and changed something in your blog configuration?

FF3 has the nast habit of simply filling in your login username as the password to connect to the database. This is very evil of course, and saves a wrong database password in your configuration. You need to make sure when you change the configuration that firefox will not autofill in the wrong password.

You must now edit the file serendipity_config_local.inc.php manually via FTP and insert the right database username+password again. If you cannot write to that file, check the FAQ on www.s9y.org for "fixperm.php", this is a simple script that allows you to set write privilege for this config file.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
help.scrivimi
Posts: 2
Joined: Wed Nov 12, 2008 9:28 am

Post by help.scrivimi »

:D thank you
Firefox is dangerous :!:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Your entry though helped me to think of a possible fix. In the next s9y version we will use autocomplete=off for this password field, so that you need to deliberately enter it...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply