SQLSTATE <2002> No such file or directory:This error keeps poping up. I have mounted magento 2.3.5 versionPlease let me know exactly how to solve this error

Thanks


*

Join the carolannpeacock.com Community
*

Join 1M+ other developers and:

Get aid and also share understanding in Q&ASubscribe to topics of interestGet courses & tools that help you prosper as a developer or small business owner Join Now
Why can't I attach to a remote MySQL server from a PHP application, however deserve to affix from mysql-client Concern
How To Find php.ini? (Ubuntu LAMP on 18.04) Inquiry

These answers are gave by our Community. If you find them valuable, display some love by clicking the heart. If you run right into problems leave a comment, or add your own answer to assist others.

×

You have the right to kind !ref in this message area to conveniently search our complete set of tutorials, documentation & marketlocation offerings and insert the link!


Hello,

Once, deserve to you inspect if the MySQL company is up and also running. If it is dvery own, you will have to rebegin.

service mysql startYou likewise might have to readjust the hostname from localhold to 127.0.0.1 in env configuration file in your magento root directory

Open app/etc/env.phpchange "host" => "localhost" to "host" =>"127.0.0.1"Save file and also retryKeep us posted, if this worked.

You are watching: Sqlstate[hy000] [2002] no such file or directory

Cheers,Sri Charan


baljinderekrocx,

You’ll a lot of more than likely need to readjust the hostname from localorganize to 127.0.0.1 in the env configuration file of your Magento application.

First, go to your Website’s DocumentRoot

cd /path/to/websiteOnce inside open the config file

nano app/etc/env.phpIn tbelow you’ll uncover an enviroment referred to as organize, readjust it choose so

readjust "host" => "localhost" to "host" =>"127.0.0.1"Save the file and refill the website to view if the error is still being competent.

Regards,KFSys


I have actually restarted the mysql. After this eexceptionally point works fine yet after some time it aobtain mirrors same.

Unable to solve this. Please aid.

See more: Undertale Battle Against A True Hero Dual Mix (Single), Battle Against A True Hero + Metal Dual Mix

Thanks


*

*

Hollie's Hub for Good

Working on improving health and wellness and education, reducing inehigh quality, and also spurring economic growth? We'd choose to help.


*

Become a contributor

You obtain paid; we donate to tech nonearnings.

Featured on Community Kubernetes Course Find Out Python 3 Machine Learning in Python Getting started with Go Intro to Kubernetes carolannpeacock.com Products Virtual Machines Managed Databases Managed Kubernetes Block Storage Object Storage Marketarea VPC Load Balancers

Welpertained to the developer cloud

carolannpeacock.com provides it basic to launch in the cloud and scale up as you thrive – whether you’re running one virtual machine or ten thousand also.

Learn More
Before you can execute that To complete this action, authorize in to your Community account or produce a new one.