Upload the website source code, has been unable to build, please boss

Visit the website where the source code is uploaded and click the installation prompt

SQLSTATE[HY000] [2002] php_ network_ getaddresses: getaddrinfo failed: No address associated with hostname

What should I do

Please write clearly and provide more info

3 Likes

That error means PHP is unable to resolve the database hostname you’ve entered. What did you enter as the database hostname?

2 Likes

epiz_31241461_xxx

XXX is my customized database name

No, that’s incorrect. The hostname should be sqlxxx.epizy.com, where xxx are numbers

2 Likes

Sorry, just misunderstood, host name: sql213 epizy. com

Database name: epiz_ 31241461_ xxx

I just lost my mind and didn’t take it seriously

Can you share the full code you are using to connect? Thanks

1 Like

Please do remember to censor the password.

4 Likes

The problem has been found. It turns out that there are spaces before and after the copied database name

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.