Loading ...
Sorry, an error occurred while loading the content.

1361Re: [bang-phpug] i have problem in connecting sql server... help me..

Expand Messages
  • Imran Khan
    Jul 4, 2009
    • 0 Attachment
      Hi, Its very simple.

      You are using mysql_password but it should jsut be password.
      Example: $link = mysql_connect('localhost', 'mysql_user', 'password');

      Please let me know if this is sorted out.

      *Warm Regards*
      *Imran Khan*
      *PHP Project Lead*

      Still i get a problem in connecting sql database in php.....my coding is
      $link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
      if (!$link) {
      die('Could not connect: ' . mysql_error());
      echo 'Connected successfully';
      the errors are

      Warning: mysql_connect() [function.mysql-connect]: Access denied for user
      'mysql_user'@'localhost' (using password: YES) in
      C:\wamp\www\php\connect.php on line 2
      Could not connect: Access denied for user 'mysql_user'@'localhost' (using
      password: YES)

      .............help me.........


      [Non-text portions of this message have been removed]
    • Show all 7 messages in this topic