Closed Thread
Results 1 to 2 of 2

Thread: Mysql not getting connected

  1. #1
    ymchaitu is offline x10Hosting Member ymchaitu is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    7

    Cool Mysql not getting connected

    Hai
    I am using the following php code to connect to the database that i have created.:dunno:

    $host = "localhost";
    $username = "ymchaitu_chaitu";
    $password = "pasword";
    $db = "md5";

    mysql_connect($host,$username,$password) or die(mysql_error());
    mysql_select_db($db) or die(mysql_error());
    mysql_close;

    but when i am accessing my site :rant2: i am getting this error. can any one help me out..:lockd:

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'chaitu'@'starka.x10hosting.com' (using password: YES) in /home/ymchaitu/public_html/Decryption/config.php on line 8
    Access denied for user 'chaitu'@'starka.x10hosting.com' (using password: YES)

  2. #2
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Mysql not getting connected

    $db = "md5"; would be $db = "ymchaitu_md5";

Closed Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Which is better postgresql or MySQL?
    By Kurai Kumo in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 12-10-2009, 08:17 AM
  3. Replies: 14
    Last Post: 09-29-2008, 07:07 PM
  4. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  5. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 AM

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
x10hosting free hosting for the masses
dedicated servers