• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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