Put the site to hostinger.ru hosting. I threw the site through FTP. Created a database. I'm trying to connect it with this code:

<? $db = mysql_connect("localhost","u141735831_ardb","********"); mysql_select_db("u141735831_db",$db); ?> 

To which I answer with an error

 Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'u141735831_ardb'@'localhost' (using password: YES) in /home/u141735831/public_html/blocks/bd.php on line 2 

Please help me solve this problem.

    2 answers 2

    This error indicates that

    1. This user has no access to the database.
    2. Either the password is incorrect

    I support @Vfvtnjd , look at both through phpmyadmin.

      You do not have access to the database server. To open access you need to add a user via phpmyadmin in the Priveliegies tab

      u141735831_ardb@localhost
      to your u141735831_ardb

      • u141735831_ardb - this is the user. u141735831_db - and here it is. There are no privileges in phpmyadmin. Well, at least this hosting. - Lgunchik
      • hashcode.ru/users/6314/lgunchik , sorry, lured the name of the database and user. - Vfvtnjd