Help neede please!! urgent..

Discussion in 'Programming' started by wussadotcom, Jan 27, 2008.

  1. #1
    Hi, I wanted to install a script and everything went fine except when the last step I have to give the server's name a gave "server146: and this come out

    Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'digitalcityhosting' (1) in /home/bakatit/public_html/bakatit_88/includes/connect.php on line 3
    No Connection EstablishedUnknown MySQL server host 'digitalcityhosting' (1)

    I think I accidentally deleted something important but I don't know what. Please help me. Thanks
     
    wussadotcom, Jan 27, 2008 IP
  2. crashq7

    crashq7 Peon

    Messages:
    264
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    did you create a mysql db and if so, did you configure the script so it can connect to the mysql db with your username and password?
     
    crashq7, Jan 27, 2008 IP
  3. wussadotcom

    wussadotcom Banned

    Messages:
    1,168
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes, I have done everything. First create a new DB link it with username and password. I have already managed to get it all right until when I need to go to enter database information. I'll PM you with details..@ URL
     
    wussadotcom, Jan 27, 2008 IP
  4. crashq7

    crashq7 Peon

    Messages:
    264
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm not sure I understand what you're trying to say, but here's the thing: there's a file called 'config.php' which you have to set up with your database name, username and password. after you do that, it has to work.

    IMPORTANT: you have to create a database first. to do that, you must enter in your server's CPANEL and then, CREATE DATABASE, then add to it an username and a password.

    ONLY after you do that you can configure the script. do you understand ?
     
    crashq7, Jan 27, 2008 IP
  5. j0ned

    j0ned Active Member

    Messages:
    684
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #5
    The error is very clear:
    The server name (digitalcityhosting) either isn't responding or doesn't exist. My SQL conf files usually point to localhost (127.0.0.1) on my VPS. I'm not sure how this works with shared hosts.
     
    j0ned, Jan 27, 2008 IP
  6. daringtakers

    daringtakers Well-Known Member

    Messages:
    808
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #6
    either You hav specified the wrong name of the server where your mysql database is installed or the name isnt resolving..

    try to ping the host 'digitalcityhosting' and see if its reachable, if not contant to ur hosting company and get valid host name.
     
    daringtakers, Jan 27, 2008 IP
  7. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #7
    Should have used localhost. It's standard for shared hosts too.
     
    shallowink, Jan 27, 2008 IP
  8. wussadotcom

    wussadotcom Banned

    Messages:
    1,168
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Ok, thanks everyone. I was sure that I did a mistake earlier cause before this I tried to do something at my root file and deleted some file. Maybe I deleted something important. I know how to install a simple script like this usually so that was why I was surprised I had an error.

    I am still trying to contact my host but if I'm not mistaken he's away thats why I have all this probs. I was trying to install this simple script at my host cause I wanted to create a site just for my assignment.

    If anybody wants to volunteer to install this script at their cpanel domain and let me create@rent a website for just a month.

    I'll give you this "full VIP Site Builder script" for free and also after I have done I will pay him@her via paypal $5 @ optional (I have a pr1 directoryhi.info - I'll give this domain to you for free - age 1 year)

    Anyone who wants to be helpful please PM me.
    Or you have a website that you don't want to use and rent to me for just a month I'll pay you $5 @ the domain directoryhi.info. I don't need a specific domain or I can use my own domain its all up to you. Thanks in advance.
     
    wussadotcom, Jan 27, 2008 IP
  9. j0ned

    j0ned Active Member

    Messages:
    684
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #9
    We've explained all the possible causes of the error. What's so difficult? Did you make any effort to ping the hostname as daringtakers suggested? If so, and no reply was received, that's obviously not the correct hostname for your SQL database...

    Why don't you check your other site(s) to see which hostname they're using to connect to SQL?
     
    j0ned, Jan 27, 2008 IP