• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question how to fix error 1045 while installing

pvnda

New Pleskian
I encountered this during installation
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
so I never set admin@localhost before, I just set the password for the root
and what should I put in /root/.my.cnf

thanks a lot!
 
You should use only root user.
I dropped all users except root, and I put
Code:
[client]
user=root
password=xxxxx
into ~/.my.cnf
it's still not working,
what did i miss ?
by the way i don't have /etc/my.cnf
and where can I find
SYSCONFDIR/my.cnf
$MYSQL_HOME/my.cnf
 
I meant using root account for all your actions in CLI. When you install Plesk, root acccess for mysql will be replaced by admin account. Therefore you mustn't have any .my.cnf especially with

user=root

records there.
 
I removed .my.cnf file, I checked all other my.cnf files, there is no [client] section expect debian.cnf but when I run wget command in su, the error still there:(
I meant using root account for all your actions in CLI. When you install Plesk, root acccess for mysql will be replaced by admin account. Therefore you mustn't have any .my.cnf especially with

user=root

records there.
 
I can only recommend to create a request to support team to do in-depth investigation to find the reason and to fix it. Please create a ticket to support at Help Center
 
Back
Top