Skip to content

Magento 2.4.6 Port must be configured within host parameter (like localhost:3306

I have a Magento 2.4.6 website built using Amazon Lightsail, which is auto-configured.
I’m installing MinimogMG theme, but I’m having trouble.

Port must be configured within host parameter (like localhost:3306

https://prnt.sc/lYTjNjn9-DGk

I followed the steps of the official tutorial. https://docs.bitnami.com/aws/apps/magento/configuration/install-theme/ https://www.youtube.com/watch?v=gpPJTfQoA0c&list=PLGgVZHi3XQNl2T8Q1RMfgLIop3TIFwVad&t=3s

How can i solve?

bitnami@ip-172-00-00-01:~/minimog_theme$ sudo /opt/bitnami/magento/bin/magento-cli setup:upgrade
Cache types config flushed successfully
Port must be configured within host parameter (like localhost:3306
In Abstract.php line 144:                                             
  SQLSTATE[HY000] [2002] Connection refused                                               
In Abstract.php line 128:                                             
  SQLSTATE[HY000] [2002] Connection refused                                               
bitnami@ip-172-00-00-01:~/minimog_theme$