database error

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
onegear
Regular
Posts: 43
Joined: Mon Sep 12, 2005 5:38 pm
Location: wasteful america
Contact:

database error

Post by onegear »

not sure if this is a bug but it's very frustrating, nonetheless.

sometimes, after i make a change in the control panel or even when i create a new post, i'll receive a "database error". what i found is that the dbuser in my "serendipity_config_local.inc.php" file will change. The dbuser id that it changes to is an id that, i believe, was an id that i used quite a while ago but have since changed. if i go to the file on the server and change the id back to my current id, the issue is then resolved with no loss of data. i have no idea why this could be happening. is this a permissions issue? what should the permissions be set to on this file?

thanks for your help.
-chad
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: database error

Post by garvinhicking »

Please check your serendipity configuration and see if the username and password there match the real ones you use.

You might also want to check your serendipity_config database table and see what 'dbUser' etc. are set to. s9y uses the values of the database to recreate that file...

HTH,
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/
onegear
Regular
Posts: 43
Joined: Mon Sep 12, 2005 5:38 pm
Location: wasteful america
Contact:

Post by onegear »

cool! i think that was it. i looked in the configuration and the userid was set to the wrong one.

thanks!
onegear
Regular
Posts: 43
Joined: Mon Sep 12, 2005 5:38 pm
Location: wasteful america
Contact:

Post by onegear »

yikes! after changing the userid in the configuration, i can now no longer log into the control panel.

uh-oh........
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

What exactly did you change in the DB?

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/
onegear
Regular
Posts: 43
Joined: Mon Sep 12, 2005 5:38 pm
Location: wasteful america
Contact:

Post by onegear »

didn't change anything in the mysql database. i did, however, change the userid in the serendipity administration panel. now, when i try to log into the administration panel with the new id and password, it errors out. i tried the old userid and password and it fails, as well. should i have actually made the changes to the database and the serendipity admin panel?

i think i really screwed something up....... :?:

thanks.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Maybe. Maybe not.

Use your provider's database tool to check out serendipity_config database table and see what 'dbUser' is set to, like Garvin said. Make sure it's the same as your current user.

If necessary, back up your old files, export your database, and reinstall from scratch. Then repopulate your database, and verify any changes to the config files. (You can even edit your database backup, so you don't overwrite the serendipity_config table.)

With the backup, of course, you're protected if something terrible happens.
Judebert
---
Website | Wishlist | PayPal
Post Reply