Having problem to Connect to the database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eishita
    New Member
    • Feb 2010
    • 2

    Having problem to Connect to the database

    Hi there

    I have created a server using Linux Mandriva 2010.0. but having problem while setting the database connectivity. Whenever I'm typing the command ---

    [root@128 ~]# mysqladmin -u root password mypassword

    its giving me the following error

    mysqladmin: connect to the server at 'localhost' failed
    error: 'Access denied for user 'root'@'localho st' (using password: NO)'

    And when I'm trying to connect to the database using a php script, it shows me the following error:

    Database Error: Access denied for user 'root'@'pp001e3 71ac9eb.usask.c a' (using password: YES)

    Can anybody help me please?
    Last edited by Atli; Feb 15 '10, 05:47 PM. Reason: Moved to the MySQL forums.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    That should be -u root -p yourpass.

    Comment

    Working...