+ Reply to Thread
Results 1 to 5 of 5

Thread: Out of my depth

  1. #1

    Default Out of my depth

    Hey everyone,

    I offered to move the hosting of a friend's site across to some of my space as I was told it was relatively static and wouldn't need anything special to keep it running.

    The full content was sent to me in a zip file and copied onto the space, nameservers transferred and everything cosmetically is correct but halfway down the page I get the error:

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'XXXXXX'@'localhost' (using password: YES) in /home/eyesrigh/public_html/XXXXXX/inc_funcs.php on line 129
    ERROR: Unable to open database, please check details


    I'm sure it's been answered a hundred times but my understanding of programming stretches about as far as html and basic so my best attempts at googling it really haven't answered my questions.

    Hope you can help!

  2. #2
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,533

    Default

    You need to change the configuration parameters for accessing the database to match what you set up when you created the database on your hosting that it is going to use.

  3. #3

    Default

    The problem that I have is that the site was created by someone else (neither myself or the person I'm hosting it for), hosted somewhere else and I am unsure of how to set up a database on bluehost or whether there is one within the file zip file that I was sent.

    As I said, I'm a complete novice when it comes to what to edit or where. Could you tell me what the parameters would be or where I could find them?

  4. #4
    Join Date
    Sep 2008
    Posts
    17

    Default

    so whats on line 129 of that file ? its probably trying to access were the database was stored on the previous hosting

  5. #5

    Default

    The actual line is:

    $db=mysql_connect($arydbdetails[3],$arydbdetails[0],$arydbdetails[1]);

    It means absolutely nothing to me I'm honest.

    There is a file called inc_dbdetails.php in the same root directory and when I open that, the information is:

    $dbdetails=array("XXXXXX", "levbgm", "XXXXXX", "localhost") (where the Xs relate to the same phrase as in the first post). I have no idea what levbgm relates to but there is not a file of that name in the root directory.

    Your help really is appreciated.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts