Aaaaaaaaaaaggggggggghhhhhhhhh

Discussion in 'MySQL' started by JamesB, Dec 10, 2007.

  1. #1
    As you can probably tell I have the hump again!

    Im trying to instal a PHP application and set up a database.

    Its not working Im getting errors all over the place

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user '****'@'localhost' (using password: YES) in /home/*****/public_html/config.php on line 27

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/****/public_html/config.php on line 28

    I have * stared out some info that may be security related issues.

    Can any one advise me what Im doing wrong. I seriously hate setting up this sort of stuff as it never works. ing frustrating!!!!

    Guys if you do reply Im an idiot OK so if you talk to me in datavase speak I probably aint going to have a clue what your talking about.

    I am sure my database set up and the config info is the same. But it would seem its not.

    Thanks

    James
     
    JamesB, Dec 10, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    It sounds like you failed to enter the proper information into the config file.

    RTFM and figure out which file you need to modify. Config,conn and dbconnect are common names.
     
    Colbyt, Dec 10, 2007 IP
  3. ing

    ing Well-Known Member

    Messages:
    500
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    195
    #3
    Just a thought...

    After you created the database and created the user, did you remember to add the user to the database?
     
    ing, Dec 10, 2007 IP
  4. sm9ai

    sm9ai Active Member

    Messages:
    746
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Sounds like the user doesn't have the correct permissions or you might just need to flush privileges.
     
    sm9ai, Dec 11, 2007 IP
  5. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes as already said, this is permission problem Again check that you have enter the right login/pass as well if the user had the permissions to edit the database.
     
    poseidon, Dec 11, 2007 IP
  6. JamesB

    JamesB Peon

    Messages:
    510
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi Guys

    Thanks very much for your help. The problem is now sorted. I didnt put the info into the config correctly. Lucky for me a mate managed to fix the problem.

    Cheers Guys glad your all here to help.

    James
     
    JamesB, Dec 13, 2007 IP