i got this error but dont know how to fix i wish i could be simple to install a website
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'hpshoet'@'localhost' (using password: YES) in /home/hpshoet/public_html/config/config.php on line 7
Access denied for user 'hpshoet'@'localhost' (using password: YES)

hear is the code from line 7/8 hope this helps
$dbh = mysql_connect($dbhost,$dbuser,$dbpass)
or die (mysql_error());
[/code]

    teamwolftrading wrote:

    i got this error but dont know how to fix i wish i could be simple to install a website
    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'hpshoet'@'localhost' (using password: YES) in /home/hpshoet/public_html/config/config.php on line 7
    Access denied for user 'hpshoet'@'localhost' (using password: YES)

    hear is the code from line 7/8 hope this helps

    $dbh = mysql_connect($dbhost,$dbuser,$dbpass)		
    or die (mysql_error());	

    Access denied for user 'hpshoet'@'localhost' (using password: YES)

    Simply means some of these have not the correct value, to allow access to your database:

    $dbhost,
    $dbuser,
    $dbpass

    Check out what is your host ( often localhost, but can be your HOSTING Database Server, too )
    Your db-username and db-user-password
    These values you can most often find in login ControlPanel of your webspace hosting.
    If not, contact HOSTING Support for information.

    regars 🙂
    halojoy

    .

      to add to halojoy's great feedback, on dreamhost for instance you create in your control panel a database and a subdomain to access it. This becomes your $dbhost instead of 'localhost'.

        ucffool wrote:

        to add to halojoy's great feedback,
        on dreamhost for instance you create in your control panel a database and a subdomain to access it. This becomes your $dbhost instead of 'localhost'.

        yes, true, ucffool

        And many times I have found my subdomain is used to connect to DB
        But for example my subdomain site at freehostia (see my signature)
        http://topeurope.freehostia.com
        has got this database host: mysql3.freehostia.com
        ... and so this will be my $dbhost

        Did you know that Freehostia is not too bad for PHP 5
        See my phpinfo.php for to see current PHP at Freehostia:
        http://topeurope.freehostia.com/phpinfo.php
        Also you can have 5 (or is it 10?) different subdomains in one account for free!!!!
        Okay, PHP 5.0.5 is not the latest ... but it works alright .. and is Free PHP 5.
        And there are NO BANNERS and ADS at freehostia. Which I like the most.

        regards 🙂
        halojoy

          this somehow transfered from being a problem to a full blown ad for freehostia.... boooo!

            Betard wrote:

            this somehow transfered from being a problem to a full blown ad for freehostia.... boooo!

            You are welcome, any good hints for getting a working PHP Setup has its place here.
            I do not know what help you gave, with your post, man.

            I sure only wanted to guide and help teamwolftrading.
            I have no affiliation whatsoever with freehostai or any other host.
            I do not make asingle money out of my PHP Knowledge.
            I only share what I have found.
            As best as I can.

            teamwolftrading,
            I am sure you can sort your [man]mysql_connect[/man]ion out, now.
            If not, just ask again 🙂
            ucffool and me,
            will do our best .. for sure.
            If this is not enough we have several other terrific Helpers,
            also doing their best for free, at our forum, when they have some time for it.

            Regards 🙂
            halojoy

              Sorry I was only kidding because the topic took such a sharp turn off topic... I could tell by the amount of your posts that you certainly weren't "new" to this forum.

              Unfortunately sarcasm/humor/jabs don't always translate well online.

              😉

                Write a Reply...