1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need Help, Getting mysql error =(

Discussion in 'PHP & Perl' started by choad, Jan 15, 2009.

  1. choad

    choad Registered Member

    Joined:
    Dec 28, 2008
    Messages:
    70
    Likes Received:
    119
    I was trying to install a nulled image php script, and i edited the part i was suppose to about my database info, but every time i try to open any pagess, i get that error. =(

    i am 100% sure that the db username i put in is correct same for the name of the database, and the password. also the user has full access to the database

    this is the part i was suppose to edit
    please help me =(
     
  2. Arthas

    Arthas BANNED BANNED

    Joined:
    Jan 5, 2009
    Messages:
    637
    Likes Received:
    322
    it has nothing to do with chmod. your DB credentials MUST be effed up.
     
  3. therat

    therat Regular Member

    Joined:
    Sep 16, 2008
    Messages:
    397
    Likes Received:
    307
    Location:
    Muff City
    yeah, you have to edit

    so for example if your host name is john and your db name is newdb and your user name is john1 and your pass is pass22 then it would be

    server = localhost (most likely)
    user = john_john1
    password = pass22
    database = john_newdb
     
  4. agj32mrgibbits

    agj32mrgibbits Registered Member

    Joined:
    Mar 1, 2008
    Messages:
    73
    Likes Received:
    50
    Make sure you are NOT putting the "choad169_" prefix on your password.

    Also try these for the server:
    localhost
    mysql
    mysql.domain.com

    and your actual server IP
     
  5. ukescuba

    ukescuba Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 24, 2008
    Messages:
    994
    Likes Received:
    634
    Occupation:
    Mobile Marketer & QR Code Junkie
    Location:
    San Antonio, TX
    Home Page:
    also use <?php at the begining of your php script block instead of just <?

    see first line of your code...

    its better for compatibility...

    i know this is stating the obvious but the DB has been created and a user assigned to it right??? :)
     
  6. Arthas

    Arthas BANNED BANNED

    Joined:
    Jan 5, 2009
    Messages:
    637
    Likes Received:
    322
    oops:::: posted in wrong thread.
     
  7. jammie

    jammie Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 24, 2008
    Messages:
    773
    Likes Received:
    453
    make sure the host is "localhost" and you're filling the details out correctly.

    It's just an authentication issue, you're database is there and working, just don't have the right details there.
     
  8. manudevil20

    manudevil20 Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 28, 2008
    Messages:
    695
    Likes Received:
    278
    Location:
    Idaho
    If you are using godaddy it wouldnt be "localhost"

    What are you using?
     
  9. choad

    choad Registered Member

    Joined:
    Dec 28, 2008
    Messages:
    70
    Likes Received:
    119
    mmm im using hostnine, and for the server i used the ip adress, ill try typing in localhost

    also ty for your guyses help

    edit: XD got it working when i typed localhost! ty soo much!

    kinda weight though, when i tried the ip adress before i didnt get the error, but now i do. meh problem solved, ty again everyone =P

    edit again: actulay wait, dont close thread yet... think im getting another error, brb
     
    Last edited: Jan 15, 2009
  10. choad

    choad Registered Member

    Joined:
    Dec 28, 2008
    Messages:
    70
    Likes Received:
    119
    edit: sorry nvm, figured out what was wrong mods can close, ty for help guys =P
     
  11. ukescuba

    ukescuba Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 24, 2008
    Messages:
    994
    Likes Received:
    634
    Occupation:
    Mobile Marketer & QR Code Junkie
    Location:
    San Antonio, TX
    Home Page:
    what had you done that was wrong?
     
  12. choad

    choad Registered Member

    Joined:
    Dec 28, 2008
    Messages:
    70
    Likes Received:
    119
    mmm i had another msql error, but i forogt i had to run install.php, once i ran it i didnt have the error anymore