1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HELP NEEDED! Database cannot connect

Discussion in 'Databases' started by Zlimp, Apr 18, 2009.

  1. #1
    Hi there Guys!
    I migrated my site to a new server and I had backed up my site. I uploaded the compressed version of the backup to the new server. But when the upload was completed i saw that i wasn't compressed. Anyways, I'll tell you step by step of what i did :-

    1) Made a New DB and a User
    2) Imported the SQL File to the New DB
    3) Changed the config.php details
    4) Transferred the back up file to public_html of my server

    What am i missing? :confused: or did i do something wrong? Please help me.. it's very urgent!
     
    Zlimp, Apr 18, 2009 IP
  2. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #2
    That error usually means your connection details (username, password, host and database name) are incorrect. You need to make sure they're correct in (I assume) config.php.
     
    BRUm, Apr 18, 2009 IP
  3. Zlimp

    Zlimp Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    thanks for the reply.. yea i checked it like 10 times... still can't find the problem.. coz that error means that there is some problems with the user details... i can't find the problem... should i make a new user and put those details again?
     
    Zlimp, Apr 18, 2009 IP
  4. superjacent

    superjacent Peon

    Messages:
    98
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Make sure that for the user you are creating, that user has full access rights (privelleges) to the database. Obviously, the database name, username & password as listed in your configuration file (if Wordpress, config.php) must correspond with the user you created and the database your created.
     
    superjacent, Apr 18, 2009 IP
  5. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #5
    Remember that databases and usernames often have prefixes, like: db_admin and db_blog.
     
    BRUm, Apr 18, 2009 IP
  6. nayes84

    nayes84 Member

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #6
    hostname also can be remote on some different server. so you need to check with hosting company to make sure from host ip.
    anyway why you don't send to them. they should be able to fix the problem for you for free.
     
    nayes84, Apr 19, 2009 IP
  7. Zlimp

    Zlimp Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #7
    Hey guys thanks for your replies!! Ill answer them one by one.. although i have solved the problem!
    Hi Superjacent! Yes that is important but I did that. But I solved the problem, it was a minor one! Thanks anyways!!!

    Hi BRUm, yes that was the problem. I backed up my files and i didnt change the db name in username n password lol... silly mistake by me!! thanks!!!!!

    Hi nayes84! yes, i actually did that! thank you so much!!

    Thank you all for your replies!!
     
    Zlimp, Apr 20, 2009 IP
    BRUm likes this.
  8. superjacent

    superjacent Peon

    Messages:
    98
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    No problems, at least you got it sorted out.
     
    superjacent, Apr 20, 2009 IP
  9. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #9
    Ah, thought it would be ;)

    No problem Zlimp.
     
    BRUm, Apr 20, 2009 IP
  10. Zlimp

    Zlimp Well-Known Member

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #10
    thanks guys!! :D
     
    Zlimp, Apr 23, 2009 IP