Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Unable to run scheduled backups or run Migration on Plesk: Access denied for user ‘admin’@’::1′ (using password: YES)

 
backupcloningdatabasedatabase serverdatabases

Symptoms

  • The backup log contains errors that are similar to the following:

    Warning: Database "admin_wp_example"
    Unable to make database dump. Error: Failed to exec mysqldump: Exit code: 2: WARNING: Forcing protocol to TCP due to option specification. Please explicitly state intended protocol.
    mysqldump: Got error: 1045: "Access denied for user 'admin'@'::1' (using password: YES)" when trying to connect

  • The Plesk Migrator fails to connect to the source database server and issues the following error:

    Failed to fetch basic information about resellers, clients and domains data from source servers
    Cause: Failed to execute SQL query on panel database: Can not connect to the Plesk database. Please, check database server is running.
    That is a critical error, migration was stopped.

  • The following warnings can be found for the MariaDB (or MySQL) service:

    # journalctl -u mariadb
    Jan 01 00:00:00 host.example.com mariadbd[PID]: 2000-01-01 0:00:00 [Warning] Access denied for user 'admin'@'::1' (using password: YES)
    Jan 01 00:00:00 host.example.com mariadbd[PID]: 2000-01-01 0:00:00 [Warning] Access denied for user 'admin'@'::1' (using password: YES)

  • WordPress cloning or copying attempts may fail with the following error:

    Unable to import database. Error message: ERROR 1045 (28000): Access denied for user 'username'@'127.0.0.1' (using password: YES)

Cause

Plesk may use host specifications like -h 127.0.0.1 or -h ::1 to connect to MySQL (or MariaDB) server.

Normally, these host specifications are covered by the 'admin'@'localhost' user definition.

With the skip-name-resolve variable enabled, 'admin'@'localhost' no longer covers specifications like -h 127.0.0.1 or -h ::1 and Plesk connection to MySQL (or MariaDB) server fails.

Resolution

In order to resolve the issue, use one of the two solutions below:

Option 1
Option 2

Disable usage of the skip-name-resolve variable for the database server:

    1. Log into Plesk

    2. Remove the skip-name-resolve variable to /etc/my.cnf (or /etc/mysql/my.cnf) config file.

    3. Check database connection by using the following commands:

      # MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -h ::1
      # MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -h 127.0.0.1
      # MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -h localhost


Define additional MySQL 'admin' user definitions to specifically cover for the -h 127.0.0.1 and -h ::1 host specification cases:

    1. Connect to the server via SSH

    2. Login to the MySQL shell by executing the following command:

      # MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin

    3. Run the following commands:

      GRANT ALL PRIVILEGES ON *.* TO 'admin'@'::1' IDENTIFIED BY 'password' WITH GRANT OPTION;

      GRANT ALL PRIVILEGES ON *.* TO 'admin'@'127.0.0.1' IDENTIFIED BY 'password' WITH GRANT OPTION;

    4. Log out of mysql shell and run the following command in Linux shell:

      # plesk bin admin --set-admin-password -passwd 'password'

      This command sets the same password for all three 'admin' accounts.

    5. Check that new 'admin' user definitions works by running the following commands:

      MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysqlcheck -c -u admin -h ::1 --all-databases
      MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysqlcheck -c -u admin -h 127.0.0.1 --all-databases
      MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysqlcheck -c -u admin -h localhost --all-databases

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

You Are Always Safe When You Have an Up-To-Date Plesk Backup

Read More »

Plesk with Centralized Database and Network File System

Read More »

All You Need to Know About the Plesk WP Toolkit 4.10 Release

Read More »
Knowledge Base

Unable to add MySQL/MariaDB/MSSQL database in Plesk: the option is missing

Read More »

Unable to remove a database in Plesk: This resource is used by installed web application

Read More »

Cannot access database with phpMyAdmin or restore it: Access denied for user ‘jdoe’@’localhost’ (using password: YES)

Read More »

 An operation fails in Plesk: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘X’ for key ‘PRIMARY’

Read More »

Hosting Wiki

  • Server Redundancy
  • Linux Containers
  • PostgreSQL
  • Bare Metal Server
  • Backup
  • MySQL
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • MSSQL
  • SQL
  • Domain
  • WordPress
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family