0

I have my magento installation and a mysql server running in two local containers and I can successfully connect to mysql from magento's container using mysql -u root -p -h <mysql_container_ip> but I get a Port must be configured within host parameter error when trying to access my site. Here's my env:

'connection' => [
            'default' => [
                'host' => '<mysql_container_ip>:3306',
                'dbname' => 'magento2',
                'username' => 'root',
                'password' => '<password>',
                'active' => '1'
            ]
        ]

1 Answer 1

0

I figured it out, I tried to execute setup:upgrade and it returned Connect Error: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

I folowed this question and managed to make it work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.