<br />
<b>Fatal error</b>: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'XXX.XXX.XXX.XXX' (111 "Connection refused")' in /home/XX/public_html/wp-content/themes/theme/page-templates/Devices.php:22
Stack trace:
#0 /home/XX/public_html/wp-content/themes/theme/page-templates/Devices.php(22): PDO->__construct(dsn,user,pass)
#1 /home/XX/public_html/wp-includes/template-loader.php(74): include('/home/XX/publ...')
#2 /home/XX/public_html/wp-blog-header.php(19): require_once('/home/XX/publ...')
#3 /home/XX/public_html/index.php(17): require('/home/XX/publ...')
#4 {main}
thrown in <b>/home/XX/public_html/wp-content/themes/theme/page-templates/my_template.php</b> on line <b>XX</b><br />
Private information scrubbed where appropriate
Hello,
Are you trying to say that SQL DB is accessible using other systems? You may test this by trying to connect SQL DB from any DB client tool on the remote network.
Looking at the error message, have you updated contents of the 'settings.php' post changes? You may want to follow recommendations suggested in this document[1]
As SQL DB is accessible from other systems, it indicates issue lies in your website configuration. Have you checked the configuration in “settings.php” files as indicated in the previously shared post?
Going forward, can you please send me the complete error logs through private message?