Mysql pass and username change

Discussion in 'WordPress' started by Jez, Mar 26, 2010.

  1. #1
    Hi, My site is getting hacked every other day and to increase the security I changed username and passwords for the whole site - including MySQL databases and users. The problem is that I assumed that it would be a matter of simply editing config.php with the new info and wordpress would be up and running again but I can't make it work.

    Can anyone help me out with how to do this please? I'd be most grateful!

    Thanks,

    Jez.
     
    Jez, Mar 26, 2010 IP
  2. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,482
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #2
    Can you tell us more about your problem please ?

    DON.
     
    deluxdon, Mar 26, 2010 IP
  3. Jez

    Jez Well-Known Member

    Messages:
    532
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Hi Don,

    Well, short term I am getting "Error establishing a database connection" on where the blog should be after changing all the usernames and passwords including MySQL.

    Long term I don't know how I can stop the hackers hacking my main site. The blog is not the main site but an add on in a separate /blog folder. I have been onto the hosts who have looked at the VPS and couldn't see any issues. I have fixed any open permissions that I had stupidly left open and the passwords they are hacking are strong.
     
    Jez, Mar 26, 2010 IP
  4. lelkoun

    lelkoun Active Member

    Messages:
    288
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Remove all plugins and scan your wp-content folder for backdoors.

    Then install a plugin called WordPress File Monitor.

    To change your MySQL password or username contact your hosting provider.
     
    lelkoun, Mar 26, 2010 IP
  5. shivam0000

    shivam0000 Member

    Messages:
    178
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #5
    shivam0000, Mar 31, 2010 IP