mysql & dns error?

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
squalo
New Forum User
New Forum User
Posts: 1
Joined: Wed Feb 20, 2013 7:28 am
Location: Italy

mysql & dns error?

Unread post by squalo »

I can not connect via SSH to the psa db, it is possible that ASL prevent me?
I see the password correctly
http://kb.parallels.com/en/427 (What is the root password for MySQL?)
but I always get the same error

[root @ linux7 ~] # mysql -uadmin -p'cat /etc/psa/.psa.shadow ' psa
ERROR 1045 (28000): Access denied for user 'admin' @ 'localhost' (using password: YES)
[root @ linux7 ~] #

:(
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: mysql & dns error?

Unread post by scott »

That means that the username and/or password is wrong
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: mysql & dns error?

Unread post by faris »

You need to copy and paste the code from that KB exactly:

Code: Select all

mysql -uadmin -p`cat /etc/psa/.psa.shadow`
In your post, you had

Code: Select all

mysql -uadmin -p'cat /etc/psa/.psa.shadow ' psa
which (if that's what you are actually using) is wrong. For a start you are using single quotes rather than backticks, and that's probably where things are going wrong.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: mysql & dns error?

Unread post by mikeshinn »

it is possible that ASL prevent me?
No, ASL has nothing to do with that. That error means your mysql username and/or password is wrong.
Post Reply