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

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

Expand Messages
  • Ramkumar
    Jul 4, 2009
    • 0 Attachment
      Does the user exist and the password is correct for the mysql DB user?

      - Ram

      arul_sreeyaa2006 wrote:
      >
      >
      > Still i get a problem in connecting sql database in php.....my coding is
      > <?php
      > $link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
      > if (!$link) {
      > die('Could not connect: ' . mysql_error());
      > }
      > echo 'Connected successfully';
      > mysql_close($link);
      > ?>
      > 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.........
      >
      >
    • Show all 7 messages in this topic