what is wrong with my onlineshop/php?

Discussion in 'PHP' started by drew68, Nov 22, 2006.

  1. #1
    hello everyone and happy thanksgiving!

    i have an online shop at http://www.superiorautoinstitute.com/onlineshop.

    it was being hosted elsewhere and brought over to bluehost.com for hosting.

    it's now down.

    i've created the msql database using bluehosts cpanel and have edited the database.php file but the site keeps giving me this error.

    Warning: mysql_pconnect() [function.mysql-pconnect]: Unknown MySQL server host 'twocows' (1) in /home/cayennet/public_html/superiorautoinstitute/onlineshop/includes/functions/database.php on line 17
    Unable to connect to database server!

    i wasn wondering if someone would be so kind as to lead me in the right direction with this. i'm not a php guy.

    Thanks for the help....

    Drew
     
    drew68, Nov 22, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #2
    it sounds, uh, like your database is down? :)

    restart mysql, reboot the server or contact your hosting help.
     
    disgust, Nov 22, 2006 IP
  3. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #3
    my database isn't down. it seems i'm having a hard time editing the database.php file.

    i created the mysql database...is there somtehing i have to do with php myadmin with my hosting service?
     
    drew68, Nov 23, 2006 IP
  4. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Maybe you should be using 'localhost' instead of 'twocows'. Most hosts have their MySQL servers running on localhost.
     
    TwistMyArm, Nov 23, 2006 IP