1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Login into Mysql by cmd line

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by EdwardDekker, Nov 23, 2011.

  1. EdwardDekker

    EdwardDekker Guest

    0
     
    When I enter
    Code:
    mysqlcheck --all-databases -o -uadmin -p`cat /etc/psa/.psa.shadow`
    
    The command will be executed us usual.

    When enter this, do I have an error into my system after entering the password.
    Code:
    [root@edwarddekkerhosting ~]# mysqlcheck --all-databases -o -uadmin -p
    Enter password:
    mysqlcheck: Got error: 1045: Access denied for user 'admin'@'localhost' (using password: YES) when trying to connect
    
    OS: Centos 5.7
    MYSQL: Ver 14.14 Distrib 5.5.18, for Linux (i686) using readline 5.1

    [root@server ~]# rpm -qa mysql
    mysql-5.5.18-1.el5.art.i386
     
    Last edited by a moderator: Nov 23, 2011
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,570
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Did you enter content of 'cat /etc/psa/.psa.shadow' as password? Do not forget that there is encrypted password. Try to use original admin's password.
     
  3. EdwardDekker

    EdwardDekker Guest

    0
     
    Mysql don't accept my original password, only 'cat /etc/psa/.psa.shadow' will be accepted.
     
Loading...