loose the mysql pass

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Guest

loose the mysql pass

Post by Guest »

hi, i want to add some plugins to serendipity but there is one problem:
i forgot the pass, then i tried to download the config.php but it looks like that i dont have enough permissions to download the file from my own server. is there anyway to find the old pass without setting a new one? greetz
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: loose the mysql pass

Post by garvinhicking »

Yes, you can write a simple PHP script and upload it via FTP:

Code: Select all

<?php
echo htmlspecialchars(file_get_contents('serendipity_config_local.inc.php'));
?>
Then open that script via HTTP and you'll see your configuration.

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/
novox
Posts: 1
Joined: Fri May 27, 2005 12:50 pm

doesn't work

Post by novox »

thx for your reply, but when i download the script via ftp, my browser tried to download the script and don't open it.. have you a idea why it doesn't work?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: doesn't work

Post by garvinhicking »

You must save the file in your s9y directory via FTP. Save it as "password.php".

Then open http://yourblog/password.php and in your browser you will see the content of the 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/
Post Reply