• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Login into Mysql by cmd line

E

EdwardDekker

Guest
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:
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.
 
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.

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