WordPress.org

Ready to get started?Download WordPress

Forums

Secret keys changed (6 posts)

  1. Otana
    Member
    Posted 5 years ago #

    Hi,
    I acidentally changed the secret keys in my blogs wp-config. Was using the template from my already existing and working blog, by download the config file through filezilla, and then edit it, to upload on my new site. and when I was supposed to upload the new config-file to my new site I happened to upload it to my already existing where I downloaded it from. And now I get "cannot establish connection to database". I guess it's because I also changed the secret keys in the file just to be sure. And I don't remember what secret keys I had before.

    Anyone know what to do? Is there any way to fix this/reinstall without eraseing data from the database? don't want to loose my already existing posts if possible.

  2. ClaytonJames
    Member
    Posted 5 years ago #

    when I was supposed to upload the new config-file to my new site I happened to upload it to my already existing where I downloaded it from

    Is it possible that the problem may just be with your database related config entries in wp-config? (does it contain the data for the new site now instead of the old one)? Check and make sure that information...

    define('DB_NAME', 'putyourdbnamehere');

    define('DB_USER', 'usernamehere');

    define('DB_PASSWORD', 'yourpasswordhere');

    ...is correct for the site you are working on.

    They way I understand it, and here is a reference, the keys themselves can be changed at any time.

  3. Otana
    Member
    Posted 5 years ago #

    Well... no it don't work on the new site either. On new site I don't even get it installed. It says "wrong username/password, or if server is down and that things...

    But what is wrong then? The username is correct (changed it back), same with tablename and password. The rest I left as it was except the define part.

  4. ClaytonJames
    Member
    Posted 5 years ago #

    Normally I would just say restore the wp-config file from the last site backup you did, but I guess I assumed you would have tried that first.

    This may or may not have an effect, but at this point it is worth a try. Changing keys invalidates site cookies. Close your browser, clear its cache, and try it again. I doubt it will work, but what the heck...

    On new site I don't even get it installed. It says "wrong username/password

    As far as the new site is concerned, that's all fresh, so it's all about correct data in the config file I would think.

  5. Otana
    Member
    Posted 5 years ago #

    Well... backup I never really did.
    I have like 6 or 7 sites. The one I use the blogg on is my site for my pets and then on the other site I just want it to be a blog site, so I have the blog in root folder.

    I installed the blog on my pets site 3 days ago, tried it for 2 days and then tried to install the blog on my blogsite (where I have it in root folder).

    First it worked fine on my pets site while I tried to setup on my own blogsite. But never got the blogsite to work. So then I tried the download thing from my pets site since that file worked and just exchanged the info as from originally file. But after I uploaded that changed file, on pets site, instead of my blogsite everything crashed on pets site too. So now I don't have any blog.

  6. Otana
    Member
    Posted 4 years ago #

    Anyone else got any ideas how to fix it?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags