Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to database #81

Open
hex20 opened this issue Nov 22, 2016 · 1 comment
Open

Can't connect to database #81

hex20 opened this issue Nov 22, 2016 · 1 comment

Comments

@hex20
Copy link

hex20 commented Nov 22, 2016

I can ssh into the database from Sequel pro but when Magento tries to connect I get
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known. I just have the default local.xml file which looks like this

        <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[localhost]]></host>
                    <username><![CDATA[magestead]]></username>
                    <password><![CDATA[vagrant]]></password>
                    <dbname><![CDATA[magestead]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>
        </resources>

Anybody know why this would be?

@richdynamix
Copy link
Owner

What connection details are you using to connect with Sequel Pro? I just connect using SSH tunnel using vagrant default connections then connect to the DB using the setup credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants