• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Server Error - 500 Plesk\Exception\Database

seanfod

New Pleskian
Server operating system version
CentOS 7
Plesk version and microupdate number
18.0.60
Hi all

I am getting the following error when trying to log in to my Plesk control panel:

Server Error
500 Plesk\Exception\Database
DB query failed: SQLSTATE[HY000] [2002] Connection refused

Type Plesk\Exception\Database
Message DB query failed: SQLSTATE[HY000] [2002] Connection refused
File Mysql.php
Line 79

Any help would be greatly appreciated, as customers are messaging me left, right and centre because all websites are down!

Thanks in advance.

Quote Reply
 
Have at the the Plesk Knowledge base for possible causes for this particular error.

I you need assistance don't hesitate tp contact Plesk support for help. To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk
 
Have at the the Plesk Knowledge base for possible causes for this particular error.

I you need assistance don't hesitate tp contact Plesk support for help. To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk
Why the solution will be only by contacting Plesk support, I have the same issue
 
Kaspar mentioned another solution first:

If that doesn't work, you can always contact Plesk support.

Can you open a new thread mentioning your OS and Plesk version if you still need help?
I checked this KP :
https://support.plesk.com/hc/en-us/...tabase-SQLSTATE-HY000-2002-Connection-refused

but as per the screenshot attached, you can see there is no output from those commands.

1728245853947.png
 
This is a common issue with numerous potential solutions—there are, in fact, 199 results for "SQLSTATE[HY000] [2002] Connection refused".
This makes it difficult to provide specific guidance through the forum without access to your server.

Therefore, I recommend contacting Plesk Support so they can investigate the issue directly and help you find the most appropriate solution.
 
This is a common issue with numerous potential solutions—there are, in fact, 199 results for "SQLSTATE[HY000] [2002] Connection refused".
This makes it difficult to provide specific guidance through the forum without access to your server.

Therefore, I recommend contacting Plesk Support so they can investigate the issue directly and help you find the most appropriate solution.
I subscribed with Plesk support as you suggested, I received the below reply from Plesk support.

1728295813469.png

and this is the list process

1728295914136.png
 
The Process List extension in Plesk looks nice, but it’s not the most useful tool for getting detailed insights.

I recommend installing btop via the command line instead. It provides a much more comprehensive view of your server's resources and performance. You can check it out here:
 
The Process List extension in Plesk looks nice, but it’s not the most useful tool for getting detailed insights.

I recommend installing btop via the command line instead. It provides a much more comprehensive view of your server's resources and performance. You can check it out here:
how to find the command line for installation
 
It's available in most repositories. For Debian (which I believe you're using), it should be:
Code:
# apt install btop
 
Your server has a memory issue, so you should monitor that. Read the docs on GitHub to try to understand how this tool works. For example, if you double-click on MariaDB in the process list, it opens a section that shows details like used memory, etc.

Another tool to understand how the memory is used on a server is:

That tool also comes as a package for most Linux distros.
Code:
# apt install ps_mem
 
Your server has a memory issue, so you should monitor that. Read the docs on GitHub to try to understand how this tool works. For example, if you double-click on MariaDB in the process list, it opens a section that shows details like used memory, etc.

Another tool to understand how the memory is used on a server is:

That tool also comes as a package for most Linux distros.
Code:
# apt install ps_mem
i got this output is it normal

1728672865179.png
 
Back
Top